本文整理汇总了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;
}
示例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;
}
示例3: getSupportedAnnotationTypes
import org.netbeans.spi.project.ui.support.NodeFactory; //导入依赖的package包/类
public @Override Set<String> getSupportedAnnotationTypes() {
return Collections.singleton(NodeFactory.Registration.class.getCanonicalName());
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}