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


Java NodeFactory类代码示例

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


NodeFactory类属于org.netbeans.spi.project.ui.support包,在下文中一共展示了NodeFactory类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleProcess

import org.netbeans.spi.project.ui.support.NodeFactory; //导入依赖的package包/类
@Override
protected boolean handleProcess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) throws LayerGenerationException {
    if (roundEnv.processingOver()) {
        return false;
    }
    for (Element e : roundEnv.getElementsAnnotatedWith(NodeFactory.Registration.class)) {
        NodeFactory.Registration r = e.getAnnotation(NodeFactory.Registration.class);
        if (r == null) {
            continue;
        }
        for (String type : r.projectType()) {
            layer(e).instanceFile("Projects/" + type + "/Nodes", null, NodeFactory.class, r, null). //NOI18N
                    position(r.position()).write();
        }
    }
    return true;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:18,代码来源:NodeFactoryAnnotationProcessor.java

示例2: getDelegate

import org.netbeans.spi.project.ui.support.NodeFactory; //导入依赖的package包/类
@NonNull
    private NodeFactory getDelegate(@NonNull final J2SEModularProject mp) {
        final NodeFactory res = MultiModuleNodeFactory.Builder.create(mp.getUpdateHelper(), mp.evaluator(), mp.getReferenceHelper())
                .setSources(mp.getModuleRoots(),mp.getSourceRoots())
                .setTests(mp.getTestModuleRoots(), mp.getTestSourceRoots())
                .addLibrariesNodes()
                .addLibrariesNodeActions(
                    LibrariesNode.createAddProjectAction(mp, mp.getSourceRoots()),
                    LibrariesNode.createAddLibraryAction(mp.getReferenceHelper(), mp.getSourceRoots(), null),
                    LibrariesNode.createAddFolderAction(mp.getAntProjectHelper(), mp.getSourceRoots()),
                    null,
                    ProjectUISupport.createPreselectPropertiesAction(mp, "Libraries", CustomizerLibraries.COMPILE) // NOI18N
                )
                .addTestLibrariesNodeActions(
//                                    LibrariesNode.createAddProjectAction(project, project.getTestSourceRoots()),
//                                    LibrariesNode.createAddLibraryAction(project.getReferenceHelper(), project.getTestSourceRoots(), null),
//                                    LibrariesNode.createAddFolderAction(project.getAntProjectHelper(), project.getTestSourceRoots()),
//                                    null,
                    ProjectUISupport.createPreselectPropertiesAction(mp, "Libraries", CustomizerLibraries.COMPILE_TESTS)    //NOI18N
                )
                .build();
        return res;
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:24,代码来源:ModuleNodeFactory.java

示例3: getSupportedAnnotationTypes

import org.netbeans.spi.project.ui.support.NodeFactory; //导入依赖的package包/类
public @Override Set<String> getSupportedAnnotationTypes() {
    return Collections.singleton(NodeFactory.Registration.class.getCanonicalName());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:NodeFactoryAnnotationProcessor.java

示例4: webproject

import org.netbeans.spi.project.ui.support.NodeFactory; //导入依赖的package包/类
@NodeFactory.Registration(projectType="org-netbeans-modules-web-project",position=425)
public static JAXBNodeFactory webproject() {
    return new JAXBNodeFactory();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:JAXBNodeFactory.java

示例5: ejbproject

import org.netbeans.spi.project.ui.support.NodeFactory; //导入依赖的package包/类
@NodeFactory.Registration(projectType="org-netbeans-modules-j2ee-ejbjarproject",position=175)
public static JAXBNodeFactory ejbproject() {
    return new JAXBNodeFactory();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:JAXBNodeFactory.java

示例6: forHtml5Project

import org.netbeans.spi.project.ui.support.NodeFactory; //导入依赖的package包/类
@NodeFactory.Registration(projectType = "org-netbeans-modules-web-clientproject", position = 520)
public static NodeFactory forHtml5Project() {
    return new ImportantFilesNodeFactory();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:ImportantFiles.java

示例7: forPhpProject

import org.netbeans.spi.project.ui.support.NodeFactory; //导入依赖的package包/类
@NodeFactory.Registration(projectType = "org-netbeans-modules-php-project", position = 200)
public static NodeFactory forPhpProject() {
    return new ImportantFilesNodeFactory();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:ImportantFiles.java


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