本文整理汇总了Java中org.netbeans.spi.project.ui.support.NodeFactory.Registration方法的典型用法代码示例。如果您正苦于以下问题:Java NodeFactory.Registration方法的具体用法?Java NodeFactory.Registration怎么用?Java NodeFactory.Registration使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.spi.project.ui.support.NodeFactory
的用法示例。
在下文中一共展示了NodeFactory.Registration方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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();
}
示例3: 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();
}
示例4: 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();
}
示例5: 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();
}