当前位置: 首页>>代码示例>>Java>>正文


Java NodeFactorySupport.createCompositeChildren方法代码示例

本文整理汇总了Java中org.netbeans.spi.project.ui.support.NodeFactorySupport.createCompositeChildren方法的典型用法代码示例。如果您正苦于以下问题:Java NodeFactorySupport.createCompositeChildren方法的具体用法?Java NodeFactorySupport.createCompositeChildren怎么用?Java NodeFactorySupport.createCompositeChildren使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.netbeans.spi.project.ui.support.NodeFactorySupport的用法示例。


在下文中一共展示了NodeFactorySupport.createCompositeChildren方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: RootNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
@Messages({"# {0} - folder", "HINT_project_root_node=Module project in {0}"})
RootNode(@NonNull NbModuleProject project) {
    
    // XXX add a NodePathResolver impl to lookup
    super(NodeFactorySupport.createCompositeChildren(project, "Projects/org-netbeans-modules-apisupport-project/Nodes"), 
          Lookups.fixed(project, DataFolder.findFolder( project.getProjectDirectory() ),
            project.getProjectDirectory()));
    this.project = project;
    boolean osgi = false;
        Manifest man = project.getManifest();
        if (man != null) {
            Attributes attrs = man.getMainAttributes();
            if (attrs != null) {
                osgi = attrs.getValue(ManifestManager.BUNDLE_SYMBOLIC_NAME) != null;
            }
        }
    setIconBaseWithExtension(
        osgi ? NbModuleProject.NB_PROJECT_OSGI_ICON_PATH :
        NbModuleProject.NB_PROJECT_ICON_PATH
    );
    pi = ProjectUtils.getInformation(project); // must keep reference to PI, it is a wrapper and would be immediately GCed
    setDisplayName(pi.getDisplayName());
    setShortDescription(HINT_project_root_node(FileUtil.getFileDisplayName(project.getProjectDirectory())));
    pi.addPropertyChangeListener(WeakListeners.propertyChange(this, pi));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:26,代码来源:ModuleLogicalView.java

示例2: ProjectNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, DlangProject project)
                    throws DataObjectNotFoundException {
//                super(node,
//                        new FilterNode.Children(node),
//                        new ProxyLookup(
//                                new Lookup[]{
//                                    Lookups.singleton(project),
//                                    node.getLookup()
//                                }));
                super(node,
                        NodeFactorySupport.createCompositeChildren(
                                project,
                                "Projects/org-dlang-project/Nodes"),
                        // new FilterNode.Children(node),
                        new ProxyLookup(
                                new Lookup[]{
                                    Lookups.singleton(project),
                                    node.getLookup()
                                }));
                this.project = project;
            }
 
开发者ID:Xianguang-Zhou,项目名称:netbeans-dlang-plugin,代码行数:22,代码来源:DlangProject.java

示例3: SuiteRootNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
SuiteRootNode(final SuiteProject suite) {
    super(NodeFactorySupport.createCompositeChildren(suite, "Projects/org-netbeans-modules-apisupport-project-suite/Nodes"), 
          Lookups.fixed(new Object[] {suite, DataFolder.findFolder( suite.getProjectDirectory() ),
            suite.getProjectDirectory()}));
    this.suite = suite;
    info = ProjectUtils.getInformation(suite);
    info.addPropertyChangeListener(WeakListeners.propertyChange(this, info));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:SuiteLogicalView.java

示例4: MavenProjectNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public MavenProjectNode(Lookup lookup, NbMavenProjectImpl proj) {
    super(NodeFactorySupport.createCompositeChildren(proj, "Projects/org-netbeans-modules-maven/Nodes"), lookup); //NOI18N
    this.project = proj;
    info = ProjectUtils.getInformation(project);
    info.addPropertyChangeListener(new PropertyChangeListener() {
        @Override public void propertyChange(PropertyChangeEvent event) {
            String prop = event.getPropertyName();
            if (ProjectInformation.PROP_NAME.equals(prop)) {
                fireNameChange(null, null);
            } else if (ProjectInformation.PROP_DISPLAY_NAME.equals(prop)) {
                fireDisplayNameChange(null, getDisplayName());
            } else if (ProjectInformation.PROP_ICON.equals(prop)) {
                fireIconChange();
                fireOpenedIconChange();
            }
        }
    });
    proj.getLookup().lookup(ProjectProblemsProvider.class).addPropertyChangeListener(new PropertyChangeListener() {
         @Override
         public void propertyChange(PropertyChangeEvent evt) {
             if (ProjectProblemsProvider.PROP_PROBLEMS.equals(evt.getPropertyName())) {
                 SwingUtilities.invokeLater(new Runnable() {
                     @Override
                     public void run() {
                         fireNameChange(null, getName());
                         fireDisplayNameChange(null, getDisplayName());
                         fireShortDescriptionChange(null, getShortDescription());
                     }
                 });

             }
         }
     });
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:35,代码来源:MavenProjectNode.java

示例5: LogicalViewRootNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
@SuppressWarnings("LeakingThisInConstructor")
LogicalViewRootNode(@NonNull final Lookup lkp) {
    super(NodeFactorySupport.createCompositeChildren(
      project,
      String.format("Projects/%s/Nodes",projectType)),  //NOI18N
      lkp);
    broken = ProjectProblems.isBroken(project);
    compileOnSaveDisabled = isCompileOnSaveDisabled();
    addChangeListener(WeakListeners.change(this, LogicalViewProviderImpl.this));
    final ProjectInformation pi = project.getLookup().lookup(ProjectInformation.class);
    info = pi != null ? pi : new SimpleInfo(project);
    info.addPropertyChangeListener(WeakListeners.propertyChange(this, info));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:14,代码来源:LogicalViewProviders.java

示例6: RootNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
@SuppressWarnings("LeakingThisInConstructor")
public RootNode(FreeformProject p) {
    super(NodeFactorySupport.createCompositeChildren(p, "Projects/org-netbeans-modules-ant-freeform/Nodes"), Lookups.singleton(p));
    this.p = p;
    info = ProjectUtils.getInformation(p);
    info.addPropertyChangeListener(WeakListeners.propertyChange(this, info));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:View.java

示例7: ProjectNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, PlayProject project) throws DataObjectNotFoundException {
    super(node,
            NodeFactorySupport.createCompositeChildren(
                    project, "Projects/com-qualixium-playnb/Nodes"),
            new ProxyLookup(
                    new Lookup[]{
                        Lookups.singleton(project), node.getLookup()
                    }));
    this.project = project;
    this.actionsProcessor = new ActionsProcessor(project);
}
 
开发者ID:pedrohidalgo,项目名称:pleasure,代码行数:12,代码来源:PlayProject.java

示例8: ProjectNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, AnsibleProject project) throws DataObjectNotFoundException {
    super(node, 
        NodeFactorySupport.createCompositeChildren( project, "Projects/de-javastream-ansible/Nodes"),
        new ProxyLookup(
                new Lookup[]{
                    Lookups.singleton(project), 
                    node.getLookup()
                }
        )
    );
    this.project = project;
}
 
开发者ID:phaus,项目名称:netbeans-ansible,代码行数:13,代码来源:AnsibleProject.java

示例9: createLogicalView

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
@Override
public Node createLogicalView() {
    String layerNodesFolder = BMProject.getLayerNodesPath(project.getType());
    Children projectChildren = NodeFactorySupport.createCompositeChildren(project, layerNodesFolder);

    BMProjectNode root = new BMProjectNode(new AbstractNode(projectChildren), project);
    rootNodeRef = new WeakReference<>(root);

    return root;
}
 
开发者ID:chhh,项目名称:batmass,代码行数:11,代码来源:BMProjectLogicalView.java

示例10: ProjectNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, BaciBeansProject project)
        throws DataObjectNotFoundException {
    super(node,
            NodeFactorySupport.createCompositeChildren(
            project,
            "Projects/edu-pepperdine-modules-baci/Nodes"),
            //new FilterNode.Children(node),
            new ProxyLookup(
            new Lookup[]{
        Lookups.singleton(project),
        node.getLookup()
    }));
    this.project = project;
}
 
开发者ID:StanWarford,项目名称:BaciBeans,代码行数:15,代码来源:BaciBeansProject.java

示例11: SourceNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public SourceNode(Node node, CacheProject project) {
    super(node,
            NodeFactorySupport.createCompositeChildren(project, "Projects/org-nbstudio-project-sources/Nodes"),
            new ProxyLookup(
            new Lookup[]{
        Lookups.singleton(project),
        node.getLookup()
    }));
    setDisplayName("Source");
}
 
开发者ID:daimor,项目名称:NBStudio,代码行数:11,代码来源:SourceNodeFactory.java

示例12: ProjectNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, CacheProject project) throws DataObjectNotFoundException {
            super(node,
                    NodeFactorySupport.createCompositeChildren(project, "Projects/org-nbstudio-project/Nodes"),
//                    new FilterNode.Children(node),
                    new ProxyLookup(
                            new Lookup[]{
                                Lookups.singleton(project),
                                node.getLookup()
                            }
                    ));
            this.project = project;
        }
 
开发者ID:daimor,项目名称:NBStudio,代码行数:13,代码来源:CacheProjectLogicalView.java

示例13: JReserveProjectRootNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
private JReserveProjectRootNode(Project project, Node node) {
    super(node,
          NodeFactorySupport.createCompositeChildren(project, LAYER_PATH),
          new ProxyLookup(project.getLookup(), node.getLookup())
    );
    setDisplayName(ProjectUtils.getInformation(project).getDisplayName());
    EventBusManager.getDefault().subscribe(this);
}
 
开发者ID:Depter,项目名称:JRLib,代码行数:9,代码来源:JReserveLogicalView.java

示例14: ProjectNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, JBakeProject project) throws DataObjectNotFoundException {
    super(node,NodeFactorySupport.createCompositeChildren( project, "Projects/org-jbake-project/Nodes")
          //  new FilterNode.Children(node)
            , new ProxyLookup(new Lookup[]{Lookups.singleton(project), node.getLookup()}));
    this.project = project;
}
 
开发者ID:rajmahendra,项目名称:NetBeans-JBake-Plugin,代码行数:7,代码来源:JBakeProjectLogicalView.java

示例15: TextNode

import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public TextNode(Node node, GoProject project) throws DataObjectNotFoundException {
    super(NodeFactorySupport.createCompositeChildren(project, "Projects/" + GoProject.GO_PROJECT_ID + "/Nodes"),
        Lookups.singleton(project));
    this.project = project;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:6,代码来源:GoProjectLogicalView.java


注:本文中的org.netbeans.spi.project.ui.support.NodeFactorySupport.createCompositeChildren方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。