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


Java CommonProjectActions.newFileAction方法代码示例

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


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

示例1: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
@Messages({"BTN_Generate_Site=Generate Site", "BTN_Deploy_Site=Deploy Site"})
public javax.swing.Action[] getActions(boolean param) {
    if (isTopLevelNode) {
        Action[] toReturn = new Action[4];
        toReturn[0] = CommonProjectActions.newFileAction();
        toReturn[1] = null;
        NetbeansActionMapping mapp = new NetbeansActionMapping();
        mapp.addGoal("site"); //NOI18N
        toReturn[2] = ActionProviderImpl.createCustomMavenAction(BTN_Generate_Site(), mapp, true, Lookup.EMPTY, project);
        mapp = new NetbeansActionMapping();
        mapp.addGoal("site:deploy"); //NOI18N
        toReturn[3] = ActionProviderImpl.createCustomMavenAction(BTN_Deploy_Site(), mapp, false, Lookup.EMPTY, project);
        return toReturn;
    } else {
        return super.getActions(param);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:19,代码来源:SiteDocsNode.java

示例2: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@NonNull
@Override
public Action[] getActions(final boolean context) {
    if (context) {
        return super.getActions(context);
    } else {
        if (actions == null) {
            actions = new Action[] {
                CommonProjectActions.newFileAction(),
                null,
                SystemAction.get(FindAction.class),
                null,
                SystemAction.get(PasteAction.class ),
                null,
                SystemAction.get(FileSystemAction.class ),
                null,
                SystemAction.get(ToolsAction.class )
            };
        }
        return actions;
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:23,代码来源:MultiModuleNodeFactory.java

示例3: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
public Action[] getActions(boolean arg0) {
    Action[] nodeActions = {
        CommonProjectActions.newFileAction(),
        null,
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_BUILD, Bundle.LBL_BuildAction_Name(), null),
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_REBUILD, Bundle.LBL_CleanBuildAction_Name(), null),
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_CLEAN, Bundle.LBL_CleanAction_Name(), null),
        null,
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_RUN, Bundle.LBL_RunAction_Name(), null),
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_DEBUG, Bundle.LBL_DebugAction_Name(), null),
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_PROFILE, Bundle.LBL_ProfileAction_Name(), null),
        ProjectSensitiveActions.projectCommandAction(ActionProvider.COMMAND_TEST, Bundle.LBL_TestAction_Name(), null),
        null,
        CommonProjectActions.copyProjectAction(),
        CommonProjectActions.deleteProjectAction(),
        CommonProjectActions.setAsMainProjectAction(),
        CommonProjectActions.closeProjectAction(),
    };
    return nodeActions;
}
 
开发者ID:tunnelvisionlabs,项目名称:goworks,代码行数:22,代码来源:GoProjectLogicalView.java

示例4: createRootNodeActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
/**
 * Creates actions for package root.
 * @return the array of {@link Action}s
 */
@NonNull
static Action[] createRootNodeActions() {
    return new Action[] {
        CommonProjectActions.newFileAction(),
        null,
        SystemAction.get( FindAction.class ),
        null,
        SystemAction.get( PasteAction.class ),
        null,
        SystemAction.get( FileSystemAction.class ),
        null,
        SystemAction.get( ToolsAction.class ),
    };
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:19,代码来源:PackageView.java

示例5: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
public Action[] getActions(boolean arg0) {
    return new Action[]{
        CommonProjectActions.newFileAction(),
        CommonProjectActions.copyProjectAction(),
        CommonProjectActions.deleteProjectAction(),
        CommonProjectActions.renameProjectAction(),
        CommonProjectActions.customizeProjectAction(),
        CommonProjectActions.closeProjectAction()
    };
}
 
开发者ID:rajmahendra,项目名称:NetBeans-JBake-Plugin,代码行数:12,代码来源:JBakeProjectLogicalView.java

示例6: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
public Action[] getActions(boolean arg0) {
    return new Action[]{
        CommonProjectActions.newFileAction(),
        CommonProjectActions.deleteProjectAction(),
        CommonProjectActions.setAsMainProjectAction(),
        null,
        actionsProcessor.createAction(ActionsEnum.RUN_AUTOCOMPILE),
        actionsProcessor.createAction(ActionsEnum.RUN),
        null,
        actionsProcessor.createAction(ActionsEnum.CLEAN),
        actionsProcessor.createAction(ActionsEnum.COMPILE),
        actionsProcessor.createAction(ActionsEnum.CLEAN_BUILD),
        null,
        actionsProcessor.createAction(ActionsEnum.DEBUG_AUTOCOMPILE),
        actionsProcessor.createAction(ActionsEnum.DEBUG),
        null,
        actionsProcessor.createAction(ActionsEnum.TEST_AUTOCOMPILE),
        actionsProcessor.createAction(ActionsEnum.TEST),
        actionsProcessor.createAction(ActionsEnum.JACOCO4SBT),
        actionsProcessor.createAction(ActionsEnum.SBT_SCOVERAGE),
        null,
        actionsProcessor.createAction(ActionsEnum.RELOAD_PROJECT),
        null,
        CommonProjectActions.closeProjectAction(),
        null,
        CommonProjectActions.customizeProjectAction()
    };

}
 
开发者ID:pedrohidalgo,项目名称:pleasure,代码行数:31,代码来源:PlayProject.java

示例7: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
public Action[] getActions(boolean arg0) {
    return new Action[]{
        CommonProjectActions.newFileAction(),
        CommonProjectActions.copyProjectAction(),
        CommonProjectActions.deleteProjectAction(),
        CommonProjectActions.closeProjectAction()
    };
}
 
开发者ID:phaus,项目名称:netbeans-ansible,代码行数:10,代码来源:AnsibleProject.java

示例8: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
public Action[] getActions(boolean arg0) {
    return new Action[]{
        CommonProjectActions.newFileAction(),
        CommonProjectActions.copyProjectAction(),
        CommonProjectActions.deleteProjectAction(),
        CommonProjectActions.closeProjectAction(),
        CommonProjectActions.customizeProjectAction(),
        //Added on top of tuitorial 
        CommonProjectActions.newProjectAction(),
        CommonProjectActions.setAsMainProjectAction()
    };
}
 
开发者ID:StanWarford,项目名称:BaciBeans,代码行数:14,代码来源:BaciBeansProject.java

示例9: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
public Action[] getActions(boolean arg0) {
    return new Action[]{
        CommonProjectActions.newFileAction(),
        CommonProjectActions.copyProjectAction(),
        CommonProjectActions.deleteProjectAction(),
        CommonProjectActions.closeProjectAction(),
        CommonProjectActions.customizeProjectAction()
    };
}
 
开发者ID:daimor,项目名称:NBStudio,代码行数:11,代码来源:CacheProjectLogicalView.java

示例10: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
public Action[] getActions(boolean arg0) {
    return new Action[]{
                CommonProjectActions.newFileAction(),
                CommonProjectActions.copyProjectAction(),
                CommonProjectActions.deleteProjectAction(),
                CommonProjectActions.closeProjectAction()
            };
}
 
开发者ID:WallRushGO,项目名称:NetBeans-C5,代码行数:10,代码来源:SiteProjectLogicalView.java

示例11: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
public Action[] getActions(boolean arg0) {
   return new Action[]{
        CommonProjectActions.newFileAction()};
}
 
开发者ID:mario-s,项目名称:netbeans-electron-support,代码行数:6,代码来源:SourceNode.java


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