本文整理汇总了Java中org.netbeans.api.templates.TemplateRegistrations类的典型用法代码示例。如果您正苦于以下问题:Java TemplateRegistrations类的具体用法?Java TemplateRegistrations怎么用?Java TemplateRegistrations使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TemplateRegistrations类属于org.netbeans.api.templates包,在下文中一共展示了TemplateRegistrations类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: wizard
import org.netbeans.api.templates.TemplateRegistrations; //导入依赖的package包/类
@TemplateRegistrations({
@TemplateRegistration(folder="Beans", position=100, content="Bean.java.template", displayName="org.netbeans.modules.beans.Bundle#Templates/Beans/Bean.java", iconBase=JavaTemplates.JAVA_ICON, description="Bean.html", category="java-beans", scriptEngine="freemarker"),
@TemplateRegistration(folder="Beans", position=200, content="BeanInfo.java.template", displayName="org.netbeans.modules.beans.Bundle#Templates/Beans/BeanInfo.java", iconBase=JavaTemplates.JAVA_ICON, description="BeanInfo.html", category="java-beans", scriptEngine="freemarker"),
@TemplateRegistration(folder="Beans", position=300, content="NoIconBeanInfo.java.template", displayName="org.netbeans.modules.beans.Bundle#Templates/Beans/NoIconBeanInfo.java", iconBase=JavaTemplates.JAVA_ICON, description="BeanInfo.html", category="java-beans", scriptEngine="freemarker"),
@TemplateRegistration(folder="Beans", position=400, content={"Customizer.java.template", "Customizer.form.template"}, displayName="org.netbeans.modules.beans.Bundle#Templates/Beans/Customizer.java", description="Customizer.html", category="java-beans", scriptEngine="freemarker"),
@TemplateRegistration(folder="Beans", position=600, content="PropertyEditor.java.template", displayName="org.netbeans.modules.beans.Bundle#Templates/Beans/PropertyEditor.java", iconBase=JavaTemplates.JAVA_ICON, description="PropertyEditor.html", category="java-beans", scriptEngine="freemarker")
})
public static WizardDescriptor.InstantiatingIterator<?> wizard() {
return JavaTemplates.createJavaTemplateIterator();
}
示例2: getSupportedAnnotationTypes
import org.netbeans.api.templates.TemplateRegistrations; //导入依赖的package包/类
@Override public Set<String> getSupportedAnnotationTypes() {
return new HashSet<>(Arrays.asList(TemplateRegistration.class.getCanonicalName(), TemplateRegistrations.class.getCanonicalName()));
}