本文整理汇总了Java中org.netbeans.spi.project.ui.support.ProjectCustomizer.CompositeCategoryProvider方法的典型用法代码示例。如果您正苦于以下问题:Java ProjectCustomizer.CompositeCategoryProvider方法的具体用法?Java ProjectCustomizer.CompositeCategoryProvider怎么用?Java ProjectCustomizer.CompositeCategoryProvider使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.spi.project.ui.support.ProjectCustomizer
的用法示例。
在下文中一共展示了ProjectCustomizer.CompositeCategoryProvider方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: formatting
import org.netbeans.spi.project.ui.support.ProjectCustomizer; //导入方法依赖的package包/类
@ProjectCustomizer.CompositeCategoryProvider.Registration(projectType="org-netbeans-modules-maven", position=1000, category="Formatting", categoryLabel="#LBL_CategoryFormatting")
@Messages("LBL_CategoryFormatting=Formatting")
public static ProjectCustomizer.CompositeCategoryProvider formatting() {
return Customizers.createFormattingCategoryProvider(Collections.emptyMap());
}
示例2: createWhiteListCategoryProvider
import org.netbeans.spi.project.ui.support.ProjectCustomizer; //导入方法依赖的package包/类
public static ProjectCustomizer.CompositeCategoryProvider createWhiteListCategoryProvider(Map attrs) {
return new Factory(Boolean.TRUE.equals((Boolean)attrs.get("show"))); //NOI18N
}
示例3: createCustomizer
import org.netbeans.spi.project.ui.support.ProjectCustomizer; //导入方法依赖的package包/类
/**
* Create project customizer for CSS preprocessors.
* <p>
* Category name is {@link #CUSTOMIZER_IDENT} ({@value #CUSTOMIZER_IDENT}).
* <p>
* Instance of this class can be registered for any project in its project customizer SFS folder.
* @return project customizer for CSS preprocessors
* @see ProjectCustomizer.CompositeCategoryProvider.Registration
* @since 1.40
*/
public ProjectCustomizer.CompositeCategoryProvider createCustomizer() {
return new CssPreprocessorsCustomizer();
}
示例4: createCategoryProvider
import org.netbeans.spi.project.ui.support.ProjectCustomizer; //导入方法依赖的package包/类
/**
* Creates an instance of the 'Formatting' category in the project properties dialog.
* This method is meant to be used from XML layers by modules that wish to add
* the 'Formatting' category to their project type's properties dialog.
*
* <p>The method recognizes 'allowedMimeTypes' XML layer attribute, which should
* contain the comma separated list of mime types, which formatting settings
* customizers should be made available for the project. If the attribute is
* not specified all registered customizers are shown. If the attribute specifies
* an empty list only the 'All Languages' customizer is shown.
*
* @param attrs The map of <code>FileObject</code> attributes
*
* @return A new 'Formatting' category provider.
* @since 1.0
* @deprecated Use {@link Customizers#createFormattingCategoryProvider(java.util.Map) } instead.
*/
@Deprecated
public static ProjectCustomizer.CompositeCategoryProvider createCategoryProvider(Map attrs) {
return Customizers.createFormattingCategoryProvider(attrs);
}
示例5: formatting
import org.netbeans.spi.project.ui.support.ProjectCustomizer; //导入方法依赖的package包/类
/**
* Creates an instance of the 'Formatting' category in the project properties dialog.
* This method is meant to be used from XML layers by modules that wish to add
* the 'Formatting' category to their project type's properties dialog.
*
* <p>The method recognizes 'allowedMimeTypes' XML layer attribute, which should
* contain the comma separated list of mime types, which formatting settings
* customizers should be made available for the project. If the attribute is
* not specified all registered customizers are shown. If the attribute specifies
* an empty list only the 'All Languages' customizer is shown.
*
* <p>May also be used from an annotation on a method in any class in your module, e.g.:
* <pre>
@ProjectCustomizer.CompositeCategoryProvider.Registration(
projectType="...", position=1000,
category="Formatting", categoryLabel="#LBL_CategoryFormatting")
@NbBundle.Messages("LBL_CategoryFormatting=Formatting")
public static ProjectCustomizer.CompositeCategoryProvider formatting() {
return Customizers.createFormattingCategoryProvider(Collections.emptyMap());
}
* </pre>
*
* @param attrs The map of <code>FileObject</code> attributes
*
* @return A new 'Formatting' category provider.
* @since 1.0
*/
public static ProjectCustomizer.CompositeCategoryProvider createFormattingCategoryProvider(Map attrs) {
return new Factory((String)attrs.get("allowedMimeTypes")); //NOI18N
}