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


Java AbstractNode.setIconBaseWithExtension方法代碼示例

本文整理匯總了Java中org.openide.nodes.AbstractNode.setIconBaseWithExtension方法的典型用法代碼示例。如果您正苦於以下問題:Java AbstractNode.setIconBaseWithExtension方法的具體用法?Java AbstractNode.setIconBaseWithExtension怎麽用?Java AbstractNode.setIconBaseWithExtension使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.openide.nodes.AbstractNode的用法示例。


在下文中一共展示了AbstractNode.setIconBaseWithExtension方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: showFinishedInfo

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
public void showFinishedInfo() {
    final AbstractNode an = new AbstractNode(Children.LEAF);
    an.setIconBaseWithExtension(
            "org/netbeans/modules/search/res/info.png");            //NOI18N
    an.setDisplayName(NbBundle.getMessage(ResultView.class,
            "TEXT_INFO_REPLACE_FINISHED", //NOI18N
            resultModel.getSelectedMatchesCount()));
    Mutex.EVENT.writeAccess(new Runnable() {
        @Override
        public void run() {
            getOutlineView().getOutline().setRootVisible(true);
            getExplorerManager().setRootContext(an);
            getOutlineView().validate();
            getOutlineView().repaint();
            btnNext.setEnabled(false);
            btnPrev.setEnabled(false);
            btnTreeView.setEnabled(false);
            btnFlatView.setEnabled(false);
            btnExpand.setEnabled(false);
        }
    });
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:23,代碼來源:BasicReplaceResultsPanel.java

示例2: createNodes

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
@Override
protected Node[] createNodes(StackTraceElement key) {
    AbstractNode an = new AbstractNode(Children.LEAF);
    an.setName(key.getClassName() + "." + key.getMethodName());
    an.setDisplayName(NbBundle.getMessage(UINode.class, "MSG_StackTraceElement", 
        new Object[] { 
            key.getFileName(),
            key.getClassName(),
            key.getMethodName(),
            key.getLineNumber(),
            afterLastDot(key.getClassName()),
        }
    ));
    an.setIconBaseWithExtension("org/netbeans/modules/uihandler/stackframe.gif"); // NOI18N
    return new Node[] { an };
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:17,代碼來源:UINode.java

示例3: createNodes

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
public Node[] createNodes (Object object) {
    if (object == WAIT_KEY) {
        AbstractNode n = new AbstractNode(Children.LEAF);
        n.setName(NbBundle.getMessage(TreeModelNode.class, "WaitNode"));
        n.setIconBaseWithExtension("org/netbeans/modules/viewmodel/wait.gif");
        return new Node[] { n };
    }
    if (object instanceof Exception)
        return new Node[] {
            new ExceptionNode ((Exception) object)
        };
    TreeModelNode tmn = new TreeModelNode (
        model,
        columns,
        treeModelRoot, 
        object
    );
    //System.err.println("created node for ("+object+") = "+tmn);
    synchronized (objectToNode) {
        objectToNode.put (object, new WeakReference<TreeModelNode>(tmn));
    }
    return new Node[] {tmn};
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:24,代碼來源:TreeModelNode.java

示例4: getRootNode

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
private Node getRootNode(FileObject fileInProject, Filter filter) {
    Children children = new Children.Array();
    children.add(createPackageRootNodes(fileInProject, choosingFolder, filter));
    AbstractNode root = new AbstractNode(children);
    root.setIconBaseWithExtension("org/netbeans/modules/form/editors2/iconResourceRoot.gif"); // NOI18N
    root.setDisplayName(NbBundle.getMessage(ClassPathFileChooser.class, "CTL_ClassPathName")); // NOI18N
    // ProjectUtils.getInformation(prj).getDisplayName()
    return root;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:10,代碼來源:ClassPathFileChooser.java

示例5: initCollection

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
@Override
protected Collection<Node> initCollection() {
    AbstractNode n = new AbstractNode(Children.LEAF);
    n.setName("init"); // NOI18N
    n.setDisplayName(NbBundle.getMessage(ProjCh.class, "MSG_ProjChInit")); 
    n.setIconBaseWithExtension("org/netbeans/modules/project/ui/resources/wait.gif");
    return Collections.singletonList((Node)n);
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:9,代碼來源:LazyProject.java

示例6: createPhaseNode

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
private Node createPhaseNode(Pair<String, List<ExecutionEventObject.Tree>> key) {
    Children childs;
    if (showOnlyErrors) {
        boolean atLeastOne = false;
        for (ExecutionEventObject.Tree ch : key.second()) {
            ExecutionEventObject end = ch.getEndEvent();
            if (end != null) {
                if (ExecutionEvent.Type.ProjectFailed.equals(end.type)
                        || ExecutionEvent.Type.MojoFailed.equals(end.type)
                        || ExecutionEvent.Type.ForkedProjectFailed.equals(end.type)
                        || ExecutionEvent.Type.ForkFailed.equals(end.type)) {
                    atLeastOne = true;
                    break;
                }
            }
        }
        if (atLeastOne) {
            childs = createChildren(key.second());
        } else {
            childs = Children.LEAF;
        }
    } else {
        childs = createChildren(key.second());
    }
    AbstractNode nd = new AbstractNode(childs, Lookup.EMPTY);
    nd.setName(key.first());
    nd.setDisplayName(key.first());
    nd.setIconBaseWithExtension(ICON_PHASE);
    return nd;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:31,代碼來源:ShowExecutionPanel.java

示例7: createWaitNode

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
@Messages("LBL_Wait=Please Wait...")
private static Node createWaitNode() {
    AbstractNode an = new AbstractNode(Children.LEAF);
    an.setIconBaseWithExtension(WAIT_GIF);
    an.setDisplayName(Bundle.LBL_Wait());
    return an;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:8,代碼來源:GoalsPanel.java

示例8: setRootNode

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
/**
 * Sets the given <code>rootNode</code> as the root
 * of this view and adds its associated section node 
 * panel as a section for this.
 */
public void setRootNode(SectionNode rootNode) {
    this.rootNode = rootNode;
    Children root = new Children.Array();
    root.add(new Node[]{rootNode});
    AbstractNode mainNode = new AbstractNode(root);
    mainNode.setDisplayName(rootNode.getDisplayName());
    mainNode.setIconBaseWithExtension(rootNode.getIconBase() + ".gif"); //NOI18N
    setRoot(mainNode);
    addSection(rootNode.getSectionNodePanel());
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:16,代碼來源:SectionNodeView.java

示例9: createPartialNode

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
static Node createPartialNode() {
    AbstractNode node = new AbstractNode(Children.LEAF);
    node.setIconBaseWithExtension("org/netbeans/modules/maven/resources/wait.gif");
    node.setDisplayName(TXT_Partial_result());
    return node;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:7,代碼來源:GroupListChildren.java

示例10: getWaitNode

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
protected static Node[] getWaitNode() {
    AbstractNode wait = new AbstractNode(Children.LEAF);
    wait.setName(NbBundle.getMessage(WsdlSaasNodeChildren.class, "NODE_LOAD_MSG")); // NOI18N
    wait.setIconBaseWithExtension("org/netbeans/modules/websvc/saas/ui/resources/wait.gif"); // NOI18N
    return new Node[] { wait };
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:7,代碼來源:SaasNodeChildren.java

示例11: createWaitNode

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
static Node createWaitNode() {
    AbstractNode n = new AbstractNode(Children.LEAF);
    n.setIconBaseWithExtension("org/openide/nodes/wait.gif"); //NOI18N
    n.setDisplayName(NbBundle.getMessage(ChildFactory.class, "LBL_WAIT")); //NOI18N
    return n;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:7,代碼來源:NodeFactorySupport.java

示例12: createWaitNode

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
private static Node createWaitNode() {
    AbstractNode an = new AbstractNode(Children.LEAF);
    an.setIconBaseWithExtension("org/netbeans/modules/maven/navigator/wait.gif");
    an.setDisplayName(NbBundle.getMessage(POMInheritancePanel.class, "LBL_Wait"));
    return an;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:7,代碼來源:POMInheritancePanel.java

示例13: createWaitNode

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
private static Node createWaitNode() {
    AbstractNode an = new AbstractNode(Children.LEAF);
    an.setIconBaseWithExtension("org/netbeans/modules/maven/navigator/wait.gif"); //NOI18N
    an.setDisplayName(NbBundle.getMessage(POMInheritancePanel.class, "LBL_Wait"));
    return an;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:7,代碼來源:POMModelPanel.java

示例14: createWaitNode

import org.openide.nodes.AbstractNode; //導入方法依賴的package包/類
private static Node createWaitNode() {
    AbstractNode an = new AbstractNode(Children.LEAF);
    an.setIconBaseWithExtension(WAIT);
    an.setDisplayName(NbBundle.getMessage(MoveToDependencyManagementPanel.class, "LBL_Wait"));
    return an;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:7,代碼來源:MoveToDependencyManagementPanel.java


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