@Override
 public Action[] getActions(boolean arg0) {
   Action[] nodeActions = new Action[8];
   nodeActions[0] = (Action) CommonProjectActions.newFileAction();
   nodeActions[1] = (Action) CommonProjectActions.copyProjectAction();
   nodeActions[2] = (Action) CommonProjectActions.deleteProjectAction();
   nodeActions[5] = (Action) CommonProjectActions.setAsMainProjectAction();
   nodeActions[6] = (Action) CommonProjectActions.closeProjectAction();
   nodeActions[7] = new SectionWizardAction(this.project);
   return nodeActions;
 }
Esempio n. 2
0
 public static void renameProject(Project p, Object caller) {
   if (p == null) {
     return;
   }
   ContextAwareAction action = (ContextAwareAction) CommonProjectActions.renameProjectAction();
   Lookup ctx = Lookups.singleton(p);
   Action ctxAction = action.createContextAwareInstance(ctx);
   ctxAction.actionPerformed(new ActionEvent(caller, 0, "")); // NOI18N
 }