當前位置: 首頁>>代碼示例>>Java>>正文


Java GraphOpenCookie類代碼示例

本文整理匯總了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));
}
 
開發者ID:arodchen,項目名稱:MaxSim,代碼行數:23,代碼來源:GraphNode.java

示例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;
        }
    });
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:30,代碼來源:GraphNode.java


注:本文中的com.sun.hotspot.igv.coordinator.actions.GraphOpenCookie類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。