站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

NodeFactory (Project UI API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.projectuiapi/1 1.24.0 6

org.netbeans.spi.project.ui.support
Interface NodeFactory


public interface NodeFactory

Factory interface for distributed creation of project node's children. Implementation instances are assumed to be registered in layers at a location specific for the particular project type. Project types wanting to make use of NodeFactory can use the NodeFactorySupport.createCompositeChildren(org.netbeans.api.project.Project, java.lang.String) method to create the Project nodes's children.

public class FooBarLogicalViewProvider implements LogicalViewProvider {
    public Node createLogicalView() {
        return new FooBarRootNode(NodeFactorySupport.createCompositeChildren("Projects/org-foo-bar-project/Nodes");
    }

}

Since:
org.netbeans.modules.projectuiapi/1 1.18

Method Summary
 NodeList<?> createNodes(Project p)
          Create a list of children nodes for the given project.
 

Method Detail

createNodes

NodeList<?> createNodes(Project p)
Create a list of children nodes for the given project. If the list is to be static, use the NodeFactorySupport.fixedNodeList(org.openide.nodes.Node...)

Returns:
never return null, if the project is not relevant to the NodeFactory, use NodeFactorySupport.fixedNodeList(org.openide.nodes.Node...) empty value.

org.netbeans.modules.projectuiapi/1 1.24.0 6

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.