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


Java ProjectCustomizer.CompositeCategoryProvider方法代码示例

本文整理汇总了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());
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:6,代码来源:SourcesPanelProvider.java

示例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
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:WhiteListCategoryPanel.java

示例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();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:14,代码来源:CssPreprocessorsUI.java

示例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);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:22,代码来源:FormattingCustomizerPanel.java

示例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>
&#64;ProjectCustomizer.CompositeCategoryProvider.Registration(
    projectType="...", position=1000,
    category="Formatting", categoryLabel="#LBL_CategoryFormatting")
&#64;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
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:31,代码来源:Customizers.java


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