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


Java CommonProjectActions.customizeProjectAction方法代码示例

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


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

示例1: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
public Action[] getActions(boolean context) {
    Collection<? extends ProjectActionsPathProvider> addonPaths =
            project.getLookup().lookupAll(ProjectActionsPathProvider.class);
    String[] layerPaths = new String[]{
        BMProject.getLayerProjectActionsPath(project.getType()),
        BMProject.getLayerProjectActionsPath(BMProject.TYPE_ANY)
    };
    layerPaths = BMProjectUtils.aggregateLayerPaths(addonPaths, layerPaths);

    Action[] defaultProjectActions = new Action[]{
        // CommonProjectActions.newFileAction(),
        CommonProjectActions.renameProjectAction(),
        CommonProjectActions.deleteProjectAction(),
        CommonProjectActions.closeProjectAction(),
        CommonProjectActions.customizeProjectAction(),
    };

    Action[] actions = NodeSubmenuUtils.createActions(context, defaultProjectActions, layerPaths);

    return actions;
}
 
开发者ID:chhh,项目名称:batmass,代码行数:23,代码来源:BMProjectLogicalView.java

示例2: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
public @Override Action[] getActions(boolean context) {

            if ( context ) {
                return super.getActions( true );
            }
            else { 
                Action[] folderActions = super.getActions( false );
                Action[] projectActions;
                
                if ( isProjectDir ) {
                    if( projectDelegateNode != null ) {
                        projectActions = projectDelegateNode.getActions( false );
                    }
                    else {
                        // If this is project dir then the properties action 
                        // has to be replaced to invoke project customizer
                        projectActions = new Action[ folderActions.length ]; 
                        for ( int i = 0; i < folderActions.length; i++ ) {
                            if ( folderActions[i] instanceof org.openide.actions.PropertiesAction ) {
                                projectActions[i] = CommonProjectActions.customizeProjectAction();
                            }
                            else {
                                projectActions[i] = folderActions[i];
                            }
                        }
                    }
                }
                else {
                    projectActions = folderActions;
                }
                
                return projectActions;
            }                                            
        }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:35,代码来源:PhysicalView.java

示例3: 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

示例4: getActions

import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
public Action[] getActions(boolean arg0) {
    Action[] nodeActions = new Action[9];
    nodeActions[0] = new PublishAssetPackAction(project);
    nodeActions[1] = new ConvertOgreBinaryMeshesAction(project);
    nodeActions[2] = new ImportWorldForgeAction(project);
    nodeActions[3] = new CleanupProjectAction(project);
    nodeActions[4] = CommonProjectActions.copyProjectAction();
    nodeActions[5] = CommonProjectActions.deleteProjectAction();
    nodeActions[6] = CommonProjectActions.setAsMainProjectAction();
    nodeActions[7] = CommonProjectActions.closeProjectAction();
    nodeActions[8] = CommonProjectActions.customizeProjectAction();
    return nodeActions;
}
 
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:15,代码来源:AssetPackProjectLogicalView.java

示例5: 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

示例6: 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.customizeProjectAction(),
        CommonProjectActions.closeProjectAction()
    };
}
 
开发者ID:Xianguang-Zhou,项目名称:netbeans-dlang-plugin,代码行数:11,代码来源:DlangProject.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(),
        CommonProjectActions.customizeProjectAction(),
        //Added on top of tuitorial 
        CommonProjectActions.newProjectAction(),
        CommonProjectActions.setAsMainProjectAction()
    };
}
 
开发者ID:StanWarford,项目名称:BaciBeans,代码行数:14,代码来源:BaciBeansProject.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()
    };
}
 
开发者ID:daimor,项目名称:NBStudio,代码行数:11,代码来源:CacheProjectLogicalView.java


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