コード例 #1
0
 protected void makeActions(IWorkbenchWindow window) {
   // standard RCP actions
   clearAction = new ClearAllAction(window);
   register(clearAction);
   newAction = new NewItemAction(window);
   register(newAction);
   deleteAction = new DeleteItemAction(window);
   register(deleteAction);
   openAllAction = new OpenAllAction(window);
   register(openAllAction);
   importAction = new ImportItemAction(window);
   register(importAction);
   exportAction = new ExportItemAction(window);
   register(exportAction);
   solidifyAction = new SolidifyAction(window);
   register(solidifyAction);
   saveAction = new SaveAction(window);
   register(saveAction);
   saveAsAction = new SaveAsAction(window);
   register(saveAsAction);
   exitAction = ActionFactory.QUIT.create(window);
   register(exitAction);
   aboutAction = ActionFactory.ABOUT.create(window);
   register(aboutAction);
   prefsAction = new PreferencesAction(window);
   register(prefsAction);
   renameAction = new RenameItemAction(window);
   register(renameAction);
   // test
   showHelpAction = ActionFactory.HELP_CONTENTS.create(window); // NEW
   register(showHelpAction); // NEW
   searchHelpAction = ActionFactory.HELP_SEARCH.create(window); // NEW
   register(searchHelpAction); // NEW
   dynamicHelpAction = ActionFactory.DYNAMIC_HELP.create(window); // NEW
   register(dynamicHelpAction); // NEW
   // custom actions
   // test
   updateAction = new UpdateAction(window); // NEW
   register(updateAction); // NEW
   searchExtensionsAction = new AddExtensionsAction(window); // NEW
   register(searchExtensionsAction); // NEW
   manageExtensionsAction = new ManageExtensionsAction(window); // NEW
   register(manageExtensionsAction); // NEW
   // openCampaignAction = new OpenAllAction(window);
   // register(openCampaignAction);
   editAction = new EditItemAction(window);
   register(editAction);
   // openCampaignAction = new SaveCampaignAction(window);
   // register(saveCampaignAction);
   switchWorkspaceAction = new SwitchWorkspaceAction(window);
   register(switchWorkspaceAction);
 }
コード例 #2
0
  protected void makeActions(IWorkbenchWindow window) {
    // Help Contents
    showHelpAction = ActionFactory.HELP_CONTENTS.create(window);
    register(showHelpAction);

    // Help Search
    searchHelpAction = ActionFactory.HELP_SEARCH.create(window);
    register(searchHelpAction);

    // Dynamic Help
    dynamicHelpAction = ActionFactory.DYNAMIC_HELP.create(window);
    register(dynamicHelpAction);
  }
コード例 #3
0
  @Override
  protected void makeActions(IWorkbenchWindow window) {
    quitAction = ActionFactory.QUIT.create(window);
    register(quitAction);

    newExecutableAction = NEW_EXECUTABLE.create(window);
    register(newExecutableAction);

    attachExecutableAction = ATTACH_EXECUTABLE.create(window);
    register(attachExecutableAction);

    corefileAction = COREFILE.create(window);
    register(corefileAction);

    editActionSetAction = ActionFactory.EDIT_ACTION_SETS.create(window);
    register(editActionSetAction);

    helpContentsAction = ActionFactory.HELP_CONTENTS.create(window);
    register(helpContentsAction);

    helpSearchAction = ActionFactory.HELP_SEARCH.create(window);
    register(helpSearchAction);

    dynamicHelpAction = ActionFactory.DYNAMIC_HELP.create(window);
    register(dynamicHelpAction);

    undoAction = ActionFactory.UNDO.create(window);
    register(undoAction);

    redoAction = ActionFactory.REDO.create(window);
    register(redoAction);

    aboutAction = ActionFactory.ABOUT.create(window);
    aboutAction.setImageDescriptor(
        IDEInternalWorkbenchImages.getImageDescriptor(
            IDEInternalWorkbenchImages.IMG_OBJS_DEFAULT_PROD));
    register(aboutAction);

    openPreferencesAction = ActionFactory.PREFERENCES.create(window);
    register(openPreferencesAction);
  }