本文整理汇总了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);
}
}
示例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;
}
}
示例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;
}
示例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 ),
};
}
示例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()
};
}
示例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()
};
}
示例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()
};
}
示例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()
};
}
示例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()
};
}
示例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()
};
}
示例11: getActions
import org.netbeans.spi.project.ui.support.CommonProjectActions; //导入方法依赖的package包/类
@Override
public Action[] getActions(boolean arg0) {
return new Action[]{
CommonProjectActions.newFileAction()};
}