コード例 #1
0
  protected void makeActions(final IWorkbenchWindow window) {
    // Creates the actions and registers them.
    // Registering is needed to ensure that key bindings work.
    // The corresponding commands keybindings are defined in the plugin.xml file.
    // Registering also provides automatic disposal of the actions when
    // the window is closed.

    exitAction = ActionFactory.QUIT.create(window);
    register(exitAction);

    aboutAction = ActionFactory.ABOUT.create(window);
    register(aboutAction);

    newWindowAction = ActionFactory.OPEN_NEW_WINDOW.create(window);
    register(newWindowAction);

    openDbConnectionViewAction =
        new OpenViewAction(window, "Open Database Configuration View", ConnectionView.ID);
    register(openDbConnectionViewAction);
    openRepositoriesViewAction =
        new OpenViewAction(window, "Open Repositories View", RepositoriesView.class.getName());
    register(openRepositoriesViewAction);
    openSoftwareInstalledViewAction =
        new OpenViewAction(window, "Open Software", ServerInstalledSoftwareView.ID);
    register(openSoftwareInstalledViewAction);

    // messagePopupAction = new MessagePopupAction("Open Message", window);
    // register(messagePopupAction);
  }
コード例 #2
0
    /**
     * Creates the 'Window' menu.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated
     */
    protected IMenuManager createWindowMenu(IWorkbenchWindow window) {
      IMenuManager menu =
          new MenuManager(getString("_UI_Menu_Window_label"), IWorkbenchActionConstants.M_WINDOW);

      addToMenuAndRegister(menu, ActionFactory.OPEN_NEW_WINDOW.create(window));
      menu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
      menu.add(ContributionItemFactory.OPEN_WINDOWS.create(window));

      return menu;
    }
コード例 #3
0
  protected void makeActions(final IWorkbenchWindow window) {
    // Creates the actions and registers them.
    // Registering is needed to ensure that key bindings work.
    // The corresponding commands keybindings are defined in the plugin.xml file.
    // Registering also provides automatic disposal of the actions when
    // the window is closed.

    exitAction = ActionFactory.QUIT.create(window);
    register(exitAction);

    newWindowAction = ActionFactory.OPEN_NEW_WINDOW.create(window);
    register(newWindowAction);
  }
コード例 #4
0
  /** @generated NOT */
  protected void makeActions(IWorkbenchWindow window) {
    toggleCoolbarAction = ActionFactory.TOGGLE_COOLBAR.create(window);
    register(toggleCoolbarAction);
    lockToolBarAction = ActionFactory.LOCK_TOOL_BAR.create(window);
    register(lockToolBarAction);

    // register(ActionFactory.CLOSE.create(window));

    // register(ActionFactory.CLOSE_ALL.create(window));

    register(ActionFactory.SAVE.create(window));

    register(ActionFactory.SAVE_AS.create(window));

    register(ActionFactory.SAVE_ALL.create(window));

    register(ActionFactory.QUIT.create(window));

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

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

    register(ActionFactory.CUT.create(window));

    register(ActionFactory.COPY.create(window));

    register(ActionFactory.PASTE.create(window));

    register(ActionFactory.DELETE.create(window));

    register(ActionFactory.SELECT_ALL.create(window));

    register(ActionFactory.OPEN_NEW_WINDOW.create(window));

    register(ActionFactory.PRINT.create(window));
  }