com.sun.hotspot.igv.data.GraphDocument Java Examples

The following examples show how to use com.sun.hotspot.igv.data.GraphDocument. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SaveAsAction.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected void performAction(Node[] activatedNodes) {

        GraphDocument doc = new GraphDocument();
        for (Node n : activatedNodes) {
            Group group = n.getLookup().lookup(Group.class);
            doc.addGroup(group);
        }

        save(doc);
    }
 
Example #2
Source File: Parser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public GraphDocument parse(XMLReader reader, InputSource source, XMLParser.ParseMonitor monitor) throws SAXException {
    reader.setContentHandler(new XMLParser(xmlDocument, monitor));
    try {
        reader.parse(source);
    } catch (IOException ex) {
        throw new SAXException(ex);
    }

    return topHandler.getObject();
}
 
Example #3
Source File: OutlineTopComponent.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private OutlineTopComponent() {
    initComponents();

    setName(NbBundle.getMessage(OutlineTopComponent.class, "CTL_OutlineTopComponent"));
    setToolTipText(NbBundle.getMessage(OutlineTopComponent.class, "HINT_OutlineTopComponent"));

    document = new GraphDocument();
    initListView();
    initToolbar();
    initReceivers();
}
 
Example #4
Source File: Printer.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void export(Writer writer, GraphDocument document) {

        XMLWriter xmlWriter = new XMLWriter(writer);

        try {
            export(xmlWriter, document);
        } catch (IOException ex) {
        }
    }
 
Example #5
Source File: Server.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public Server(GraphDocument rootDocument, GroupCallback callback, boolean binary) {
    this.binary = binary;
    this.rootDocument = rootDocument;
    this.callback = callback;
    initializeNetwork();
    Settings.get().addPreferenceChangeListener(this);
}
 
Example #6
Source File: OutlineTopComponent.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private OutlineTopComponent() {
    initComponents();

    setName(NbBundle.getMessage(OutlineTopComponent.class, "CTL_OutlineTopComponent"));
    setToolTipText(NbBundle.getMessage(OutlineTopComponent.class, "HINT_OutlineTopComponent"));

    document = new GraphDocument();
    initListView();
    initToolbar();
    initReceivers();
}
 
Example #7
Source File: SaveAsAction.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected void performAction(Node[] activatedNodes) {

    GraphDocument doc = new GraphDocument();
    for (Node n : activatedNodes) {
        Group group = n.getLookup().lookup(Group.class);
        doc.addElement(group);
    }

    save(doc);
}
 
Example #8
Source File: Printer.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void export(Writer writer, GraphDocument document) {

        XMLWriter xmlWriter = new XMLWriter(writer);

        try {
            export(xmlWriter, document);
        } catch (IOException ex) {
        }
    }
 
Example #9
Source File: Printer.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void export(XMLWriter xmlWriter, GraphDocument document) throws IOException {
    xmlWriter.startTag(Parser.ROOT_ELEMENT);
    xmlWriter.writeProperties(document.getProperties());
    for (Group g : document.getGroups()) {
        export(xmlWriter, g);
    }

    xmlWriter.endTag();
    xmlWriter.flush();
}
 
Example #10
Source File: Parser.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public GraphDocument parse(XMLReader reader, InputSource source, XMLParser.ParseMonitor monitor) throws SAXException {
    reader.setContentHandler(new XMLParser(xmlDocument, monitor));
    try {
        reader.parse(source);
    } catch (IOException ex) {
        throw new SAXException(ex);
    }

    return topHandler.getObject();
}
 
Example #11
Source File: OutlineTopComponent.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private OutlineTopComponent() {
    initComponents();

    setName(NbBundle.getMessage(OutlineTopComponent.class, "CTL_OutlineTopComponent"));
    setToolTipText(NbBundle.getMessage(OutlineTopComponent.class, "HINT_OutlineTopComponent"));

    document = new GraphDocument();
    initListView();
    initToolbar();
    initReceivers();
}
 
Example #12
Source File: SaveAsAction.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected void performAction(Node[] activatedNodes) {

        GraphDocument doc = new GraphDocument();
        for (Node n : activatedNodes) {
            Group group = n.getLookup().lookup(Group.class);
            doc.addGroup(group);
        }

        save(doc);
    }
 
Example #13
Source File: Printer.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void export(Writer writer, GraphDocument document) {

        XMLWriter xmlWriter = new XMLWriter(writer);

        try {
            export(xmlWriter, document);
        } catch (IOException ex) {
        }
    }
 
Example #14
Source File: Printer.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void export(XMLWriter xmlWriter, GraphDocument document) throws IOException {
    xmlWriter.startTag(Parser.ROOT_ELEMENT);
    xmlWriter.writeProperties(document.getProperties());
    for (Group g : document.getGroups()) {
        export(xmlWriter, g);
    }

    xmlWriter.endTag();
    xmlWriter.flush();
}
 
Example #15
Source File: Parser.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public GraphDocument parse(XMLReader reader, InputSource source, XMLParser.ParseMonitor monitor) throws SAXException {
    reader.setContentHandler(new XMLParser(xmlDocument, monitor));
    try {
        reader.parse(source);
    } catch (IOException ex) {
        throw new SAXException(ex);
    }

    return topHandler.getObject();
}
 
Example #16
Source File: OutlineTopComponent.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private OutlineTopComponent() {
    initComponents();

    setName(NbBundle.getMessage(OutlineTopComponent.class, "CTL_OutlineTopComponent"));
    setToolTipText(NbBundle.getMessage(OutlineTopComponent.class, "HINT_OutlineTopComponent"));

    document = new GraphDocument();
    initListView();
    initToolbar();
    initReceivers();
}
 
Example #17
Source File: SaveAsAction.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected void performAction(Node[] activatedNodes) {

        GraphDocument doc = new GraphDocument();
        for (Node n : activatedNodes) {
            Group group = n.getLookup().lookup(Group.class);
            doc.addGroup(group);
        }

        save(doc);
    }
 
Example #18
Source File: Printer.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void export(Writer writer, GraphDocument document) {

        XMLWriter xmlWriter = new XMLWriter(writer);

        try {
            export(xmlWriter, document);
        } catch (IOException ex) {
        }
    }
 
Example #19
Source File: Printer.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void export(XMLWriter xmlWriter, GraphDocument document) throws IOException {
    xmlWriter.startTag(Parser.ROOT_ELEMENT);
    xmlWriter.writeProperties(document.getProperties());
    for (Group g : document.getGroups()) {
        export(xmlWriter, g);
    }

    xmlWriter.endTag();
    xmlWriter.flush();
}
 
Example #20
Source File: Parser.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public GraphDocument parse(XMLReader reader, InputSource source, XMLParser.ParseMonitor monitor) throws SAXException {
    reader.setContentHandler(new XMLParser(xmlDocument, monitor));
    try {
        reader.parse(source);
    } catch (IOException ex) {
        throw new SAXException(ex);
    }

    return topHandler.getObject();
}
 
Example #21
Source File: OutlineTopComponent.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private OutlineTopComponent() {
    initComponents();

    setName(NbBundle.getMessage(OutlineTopComponent.class, "CTL_OutlineTopComponent"));
    setToolTipText(NbBundle.getMessage(OutlineTopComponent.class, "HINT_OutlineTopComponent"));

    document = new GraphDocument();
    initListView();
    initToolbar();
    initReceivers();
}
 
Example #22
Source File: SaveAsAction.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected void performAction(Node[] activatedNodes) {

        GraphDocument doc = new GraphDocument();
        for (Node n : activatedNodes) {
            Group group = n.getLookup().lookup(Group.class);
            doc.addGroup(group);
        }

        save(doc);
    }
 
Example #23
Source File: Printer.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void export(XMLWriter xmlWriter, GraphDocument document) throws IOException {
    xmlWriter.startTag(Parser.ROOT_ELEMENT);
    xmlWriter.writeProperties(document.getProperties());
    for (Group g : document.getGroups()) {
        export(xmlWriter, g);
    }

    xmlWriter.endTag();
    xmlWriter.flush();
}
 
Example #24
Source File: Printer.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private void export(XMLWriter xmlWriter, GraphDocument document) throws IOException {
    xmlWriter.startTag(Parser.ROOT_ELEMENT);
    xmlWriter.writeProperties(document.getProperties());
    for (Group g : document.getGroups()) {
        export(xmlWriter, g);
    }

    xmlWriter.endTag();
    xmlWriter.flush();
}
 
Example #25
Source File: Printer.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void export(Writer writer, GraphDocument document) {

        XMLWriter xmlWriter = new XMLWriter(writer);

        try {
            export(xmlWriter, document);
        } catch (IOException ex) {
        }
    }
 
Example #26
Source File: Parser.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public GraphDocument parse(XMLReader reader, InputSource source, XMLParser.ParseMonitor monitor) throws SAXException {
    reader.setContentHandler(new XMLParser(xmlDocument, monitor));
    try {
        reader.parse(source);
    } catch (IOException ex) {
        throw new SAXException(ex);
    }

    return topHandler.getObject();
}
 
Example #27
Source File: OutlineTopComponent.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private OutlineTopComponent() {
    initComponents();

    setName(NbBundle.getMessage(OutlineTopComponent.class, "CTL_OutlineTopComponent"));
    setToolTipText(NbBundle.getMessage(OutlineTopComponent.class, "HINT_OutlineTopComponent"));

    document = new GraphDocument();
    initListView();
    initToolbar();
    initReceivers();
}
 
Example #28
Source File: Printer.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void export(XMLWriter xmlWriter, GraphDocument document) throws IOException {
    xmlWriter.startTag(Parser.ROOT_ELEMENT);
    xmlWriter.writeProperties(document.getProperties());
    for (Group g : document.getGroups()) {
        export(xmlWriter, g);
    }

    xmlWriter.endTag();
    xmlWriter.flush();
}
 
Example #29
Source File: SaveAsAction.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
protected void performAction(Node[] activatedNodes) {

        GraphDocument doc = new GraphDocument();
        for (Node n : activatedNodes) {
            Group group = n.getLookup().lookup(Group.class);
            doc.addGroup(group);
        }

        save(doc);
    }
 
Example #30
Source File: SaveAsAction.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
protected void performAction(Node[] activatedNodes) {

        GraphDocument doc = new GraphDocument();
        for (Node n : activatedNodes) {
            Group group = n.getLookup().lookup(Group.class);
            doc.addGroup(group);
        }

        save(doc);
    }