本文整理匯總了Java中com.sun.hotspot.igv.coordinator.actions.GraphOpenCookie類的典型用法代碼示例。如果您正苦於以下問題:Java GraphOpenCookie類的具體用法?Java GraphOpenCookie怎麽用?Java GraphOpenCookie使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
GraphOpenCookie類屬於com.sun.hotspot.igv.coordinator.actions包,在下文中一共展示了GraphOpenCookie類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: GraphNode
import com.sun.hotspot.igv.coordinator.actions.GraphOpenCookie; //導入依賴的package包/類
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));
}
示例2: GraphNode
import com.sun.hotspot.igv.coordinator.actions.GraphOpenCookie; //導入依賴的package包/類
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;
}
});
}