com.sun.hotspot.igv.coordinator.actions.DiffGraphCookie Java Examples
The following examples show how to use
com.sun.hotspot.igv.coordinator.actions.DiffGraphCookie.
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: GraphNode.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override public <T extends Node.Cookie> T getCookie(Class<T> aClass) { if (aClass == DiffGraphCookie.class) { InputGraphProvider graphProvider = Utilities.actionsGlobalContext().lookup(InputGraphProvider.class); InputGraph graphA = null; if (graphProvider != null) { graphA = graphProvider.getGraph(); } if (graphA != null && !graphA.isDifferenceGraph()) { return (T) new DiffGraphCookie(graphA, graph); } } return super.getCookie(aClass); }
Example #2
Source File: GraphNode.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override public <T extends Node.Cookie> T getCookie(Class<T> aClass) { if (aClass == DiffGraphCookie.class) { InputGraphProvider graphProvider = Utilities.actionsGlobalContext().lookup(InputGraphProvider.class); InputGraph graphA = null; if (graphProvider != null) { graphA = graphProvider.getGraph(); } if (graphA != null && !graphA.isDifferenceGraph()) { return (T) new DiffGraphCookie(graphA, graph); } } return super.getCookie(aClass); }
Example #3
Source File: GraphNode.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override public <T extends Node.Cookie> T getCookie(Class<T> aClass) { if (aClass == DiffGraphCookie.class) { InputGraphProvider graphProvider = Utilities.actionsGlobalContext().lookup(InputGraphProvider.class); InputGraph graphA = null; if (graphProvider != null) { graphA = graphProvider.getGraph(); } if (graphA != null && !graphA.isDifferenceGraph()) { return (T) new DiffGraphCookie(graphA, graph); } } return super.getCookie(aClass); }
Example #4
Source File: GraphNode.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@Override public <T extends Node.Cookie> T getCookie(Class<T> aClass) { if (aClass == DiffGraphCookie.class) { InputGraphProvider graphProvider = Utilities.actionsGlobalContext().lookup(InputGraphProvider.class); InputGraph graphA = null; if (graphProvider != null) { graphA = graphProvider.getGraph(); } if (graphA != null && !graphA.isDifferenceGraph()) { return (T) new DiffGraphCookie(graphA, graph); } } return super.getCookie(aClass); }
Example #5
Source File: GraphNode.java From hottub with GNU General Public License v2.0 | 6 votes |
@Override public <T extends Node.Cookie> T getCookie(Class<T> aClass) { if (aClass == DiffGraphCookie.class) { InputGraphProvider graphProvider = Utilities.actionsGlobalContext().lookup(InputGraphProvider.class); InputGraph graphA = null; if (graphProvider != null) { graphA = graphProvider.getGraph(); } if (graphA != null && !graphA.isDifferenceGraph()) { return (T) new DiffGraphCookie(graphA, graph); } } return super.getCookie(aClass); }
Example #6
Source File: GraphNode.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
@Override public <T extends Node.Cookie> T getCookie(Class<T> aClass) { if (aClass == DiffGraphCookie.class) { InputGraphProvider graphProvider = Utilities.actionsGlobalContext().lookup(InputGraphProvider.class); InputGraph graphA = null; if (graphProvider != null) { graphA = graphProvider.getGraph(); } if (graphA != null && !graphA.isDifferenceGraph()) { return (T) new DiffGraphCookie(graphA, graph); } } return super.getCookie(aClass); }
Example #7
Source File: GraphNode.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
@Override public <T extends Node.Cookie> T getCookie(Class<T> aClass) { if (aClass == DiffGraphCookie.class) { InputGraphProvider graphProvider = Utilities.actionsGlobalContext().lookup(InputGraphProvider.class); InputGraph graphA = null; if (graphProvider != null) { graphA = graphProvider.getGraph(); } if (graphA != null && !graphA.isDifferenceGraph()) { return (T) new DiffGraphCookie(graphA, graph); } } return super.getCookie(aClass); }
Example #8
Source File: GraphNode.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private GraphNode(InputGraph graph, InstanceContent content) { super(Children.LEAF, new AbstractLookup(content)); this.graph = graph; this.setDisplayName(graph.getName()); content.add(graph); final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class); if (viewer != null) { // Action for opening the graph content.add(new GraphOpenCookie(viewer, graph)); } // Action for removing a graph content.add(new GraphRemoveCookie(graph)); // Action for diffing to the current graph content.add(new DiffGraphCookie(graph)); // Action for cloning to the current graph content.add(new GraphCloneCookie(viewer, graph)); this.addNodeListener(new NodeAdapter() { @Override public void childrenRemoved(NodeMemberEvent ev) { GraphNode.this.graph = null; } }); }