private IContributionItem getResetPerspectiveItem() {
   return getItem(
       ActionFactory.RESET_PERSPECTIVE.getId(),
       ActionFactory.RESET_PERSPECTIVE.getCommandId(),
       null,
       null,
       Messages.ResetPerspective_text,
       Messages.ResetPerspective_toolTip,
       IWorkbenchHelpContextIds.RESET_PERSPECTIVE_ACTION);
 }
  @Override
  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);

    showViewAction = ActionFactory.SHOW_VIEW_MENU.create(window);
    register(showViewAction);

    openPerspectiveAction = ActionFactory.OPEN_PERSPECTIVE_DIALOG.create(window);
    register(openPerspectiveAction);

    resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE.create(window);
    register(resetPerspectiveAction);

    closePerspectiveAction = ActionFactory.CLOSE_PERSPECTIVE.create(window);
    register(closePerspectiveAction);
  }
  /* (non-Javadoc)
   * @see org.eclipse.ui.application.ActionBarAdvisor#makeActions(org.eclipse.ui.IWorkbenchWindow)
   */
  protected void makeActions(IWorkbenchWindow window) {
    helpContentsAction = ActionFactory.HELP_CONTENTS.create(window);
    register(helpContentsAction);

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

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

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

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

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

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

    preferencesAction = ActionFactory.PREFERENCES.create(window);
    register(preferencesAction);

    /*
    newEditorAction = ActionFactory.NEW_EDITOR.create(window);
    register(newEditorAction);
    */
    /*
    newWindowAction = ActionFactory.OPEN_NEW_WINDOW.create(window);
    newWindowAction.setText("New Toolbox window");
    register(newWindowAction);
    */

    resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE.create(window);
    register(resetPerspectiveAction);

    backwardHistoryAction = ActionFactory.BACKWARD_HISTORY.create(window);
    register(backwardHistoryAction);

    forwardHistoryAction = ActionFactory.FORWARD_HISTORY.create(window);
    register(forwardHistoryAction);
  }