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


Java ActionProvider.COMMAND_CLEAN属性代码示例

本文整理汇总了Java中org.netbeans.spi.project.ActionProvider.COMMAND_CLEAN属性的典型用法代码示例。如果您正苦于以下问题:Java ActionProvider.COMMAND_CLEAN属性的具体用法?Java ActionProvider.COMMAND_CLEAN怎么用?Java ActionProvider.COMMAND_CLEAN使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.netbeans.spi.project.ActionProvider的用法示例。


在下文中一共展示了ActionProvider.COMMAND_CLEAN属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: cleanProject

public static Action cleanProject() {
    Action a = new ProjectAction(
            ActionProvider.COMMAND_CLEAN,
            NbBundle.getMessage(Actions.class, "LBL_CleanProjectAction_Name"),
            NbBundle.getMessage(Actions.class, "LBL_CleanProjectAction_Name_popup"),
            null,
            null );
    a.putValue("iconBase","org/netbeans/modules/project/ui/resources/cleanCurrentProject.gif"); //NOI18N
    return a;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:10,代码来源:Actions.java

示例2: cleanMainProject

public static Action cleanMainProject() {
    Action a = new MainProjectAction(
            ActionProvider.COMMAND_CLEAN,
            NbBundle.getMessage(Actions.class, "LBL_CleanMainProjectAction_Name" ),null);  //NOI18N
    a.putValue("iconBase","org/netbeans/modules/project/ui/resources/cleanProject.gif"); //NOI18N
    return a;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:7,代码来源:Actions.java

示例3: createDefaultScriptAction

@NonNull
public ScriptAction createDefaultScriptAction(
        @NonNull final String command,
        final boolean javaModelSensitive,
        final boolean scanSensitive,
        final boolean enabledInCoS,
        @NonNull final Supplier<? extends String[]> targets,
        @NullAllowed final CustomFileExecutor customFileExecutor) {
    Parameters.notNull("command", command);         //NOI18N
    Parameters.notNull("targets", targets);         //NOI18N
    switch (command) {
        case ActionProvider.COMMAND_CLEAN:
            return createNonCosAction(command, false, javaModelSensitive, scanSensitive, enabledInCoS, targets, Collections.emptyMap());
        case ActionProvider.COMMAND_REBUILD:
            return createNonCosAction(command, true, javaModelSensitive, scanSensitive, enabledInCoS, targets, Collections.emptyMap());
        case ActionProvider.COMMAND_BUILD:
            return createBuildAction(javaModelSensitive, scanSensitive, enabledInCoS, targets, mfs);
        case ActionProvider.COMMAND_RUN:
        case ActionProvider.COMMAND_DEBUG:
        case ActionProvider.COMMAND_DEBUG_STEP_INTO:
        case ActionProvider.COMMAND_PROFILE:
            return createRunAction(command, javaModelSensitive, scanSensitive, enabledInCoS, targets, mfs, mainClassServices);
        case ActionProvider.COMMAND_TEST:
            return createNonCosAction(command, true, javaModelSensitive, scanSensitive, enabledInCoS, targets, Collections.singletonMap("ignore.failing.tests", "true"));  //NOI18N);
        case ActionProvider.COMMAND_COMPILE_SINGLE:
            return createCompileSingleAction(javaModelSensitive, scanSensitive, enabledInCoS, sourceRoots, testRoots, targets);
        case ActionProvider.COMMAND_RUN_SINGLE:
        case ActionProvider.COMMAND_DEBUG_SINGLE:
        case ActionProvider.COMMAND_PROFILE_SINGLE:
            return createRunSingleAction(
                    command, javaModelSensitive, scanSensitive, enabledInCoS,
                    sourceRoots, testRoots, targets, customFileExecutor);
        case ActionProvider.COMMAND_TEST_SINGLE:
            return createTestSingleAction(javaModelSensitive, scanSensitive, enabledInCoS, sourceRoots, testRoots, targets);
        case ActionProvider.COMMAND_DEBUG_TEST_SINGLE:
        case ActionProvider.COMMAND_PROFILE_TEST_SINGLE:
            return createDebugTestSingleAction(command, javaModelSensitive, scanSensitive, enabledInCoS, sourceRoots, testRoots, targets);
        case SingleMethod.COMMAND_RUN_SINGLE_METHOD:
        case SingleMethod.COMMAND_DEBUG_SINGLE_METHOD:
            return createRunSingleMethodAction(command, javaModelSensitive, scanSensitive, enabledInCoS, testRoots, targets);
        case JavaProjectConstants.COMMAND_DEBUG_FIX:
            return createDebugFixAction(command, javaModelSensitive, scanSensitive, enabledInCoS, sourceRoots, testRoots, targets);
        default:
            throw new UnsupportedOperationException(String.format("Unsupported command: %s", command)); //NOI18N
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:46,代码来源:JavaActionProvider.java

示例4: getSupportedActions

@Override
public String[] getSupportedActions() {
    return new String[] {ActionProvider.COMMAND_CLEAN};
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:BaseActionProviderTest.java


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