Java Code Examples for com.sun.hotspot.igv.data.services.GraphViewer#view()

The following examples show how to use com.sun.hotspot.igv.data.services.GraphViewer#view() . 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: DiffGraphCookie.java    From TencentKona-8 with GNU General Public License v2.0 7 votes vote down vote up
public void openDiff() {

        final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);

        if(viewer != null) {
            InputGraph diffGraph = Difference.createDiffGraph(a, b);
            viewer.view(diffGraph);
        }
    }
 
Example 2
Source File: DiffGraphCookie.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void openDiff() {

        final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);

        if(viewer != null) {
            InputGraph diffGraph = Difference.createDiffGraph(a, b);
            viewer.view(diffGraph);
        }
    }
 
Example 3
Source File: DiffGraphCookie.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void openDiff() {

        final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);

        if(viewer != null) {
            InputGraph diffGraph = Difference.createDiffGraph(a, b);
            viewer.view(diffGraph);
        }
    }
 
Example 4
Source File: DiffGraphCookie.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void openDiff() {

        final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);

        if(viewer != null) {
            InputGraph diffGraph = Difference.createDiffGraph(a, b);
            viewer.view(diffGraph);
        }
    }
 
Example 5
Source File: FigureWidget.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public JPopupMenu getPopupMenu(Widget widget, Point point) {
    JPopupMenu menu = diagramScene.createPopupMenu();
    menu.addSeparator();

    build(menu, getFigure(), this, false, diagramScene);
    menu.addSeparator();
    build(menu, getFigure(), this, true, diagramScene);

    if (getFigure().getSubgraphs() != null) {
        menu.addSeparator();
        JMenu subgraphs = new JMenu("Subgraphs");
        menu.add(subgraphs);

        final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);
        for (final InputGraph subgraph : getFigure().getSubgraphs()) {
            Action a = new AbstractAction() {

                @Override
                public void actionPerformed(ActionEvent e) {
                    viewer.view(subgraph, true);
                }
            };

            a.setEnabled(true);
            a.putValue(Action.NAME, subgraph.getName());
            subgraphs.add(a);
        }
    }

    return menu;
}
 
Example 6
Source File: DiffGraphCookie.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void openDiff() {
    InputGraph other = getCurrentGraph();
    final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);
    if (viewer != null) {
        InputGraph diffGraph = Difference.createDiffGraph(other, graph);
        viewer.view(diffGraph, true);
    }
}
 
Example 7
Source File: DiffGraphCookie.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void openDiff() {

        final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);

        if(viewer != null) {
            InputGraph diffGraph = Difference.createDiffGraph(a, b);
            viewer.view(diffGraph);
        }
    }
 
Example 8
Source File: DiffGraphCookie.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void openDiff() {

        final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);

        if(viewer != null) {
            InputGraph diffGraph = Difference.createDiffGraph(a, b);
            viewer.view(diffGraph);
        }
    }
 
Example 9
Source File: DiffGraphCookie.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void openDiff() {

        final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);

        if(viewer != null) {
            InputGraph diffGraph = Difference.createDiffGraph(a, b);
            viewer.view(diffGraph);
        }
    }