Package org.eclipse.ui

Examples of org.eclipse.ui.IActionBars.updateActionBars()


        toolBarManager.add(new ActionDelegateProxy(
            new ClusterTreeExpanderAction(
                ClusterTreeExpanderAction.CollapseAction.COLLAPSE,
                clusterTree, editor.getSearchResult()),
            IAction.AS_PUSH_BUTTON));
        bars.updateActionBars();
       
        // Register listeners
        registerListeners();

        // Display the current content.
View Full Code Here


      }
    }
    IActionBars actionBars = getActionBars();
    if (actionBars != null) {
      // update menu bar and tool bar
      actionBars.updateActionBars();
    }
  }
 
  private void activateDesignPage(IEditorPart activeEditor) {
    if (sourceViewerActionContributor != null && sourceViewerActionContributor instanceof ISourceViewerActionBarContributor) {
View Full Code Here

    toolBarManager.add(colapseA);
    toolBarManager.add(new Separator());
    toolBarManager.add(action);
    toolBarManager.add(action2);

    actionBars.updateActionBars();
  }

  public abstract static class Collapser {

    abstract void collapse();
View Full Code Here

          ActionFactory.FIND.getId(),
          getAction(editor, ITextEditorActionConstants.FIND));
      actionBars.setGlobalActionHandler(
          IDEActionFactory.BOOKMARK.getId(),
          getAction(editor, IDEActionFactory.BOOKMARK.getId()));
      actionBars.updateActionBars();
    }
  }

  private void createActions() {
    sampleAction = new Action() {
View Full Code Here

    bars.setGlobalActionHandler(id, registry.getAction(id));
    id = IncrementDecrementAction.INCREMENT;
    bars.setGlobalActionHandler(id, registry.getAction(id));
    id = IncrementDecrementAction.DECREMENT;
    bars.setGlobalActionHandler(id, registry.getAction(id));
    bars.updateActionBars();
  }

  protected void configureOutlineViewer(){
    getViewer().setEditDomain(getEditDomain());
    getViewer().setEditPartFactory(new TreePartFactory());
View Full Code Here

        toolbarManager.appendToGroup(SCRIPT_GROUP, saveSessionAction);

        ScriptConsole console = (ScriptConsole) getConsole();
        console.createActions(toolbarManager);

        bars.updateActionBars();
    }

    @Override
    protected void contextMenuAboutToShow(IMenuManager menuManager) {
        super.contextMenuAboutToShow(menuManager);
View Full Code Here

              ITextEditorActionConstants.SELECT_ALL));
      actionBars.setGlobalActionHandler(ActionFactory.FIND.getId(), getAction(editor,
              ITextEditorActionConstants.FIND));
      actionBars.setGlobalActionHandler(IDEActionFactory.BOOKMARK.getId(), getAction(editor,
              IDEActionFactory.BOOKMARK.getId()));
      actionBars.updateActionBars();
    }
  }

  /*
   * (non-Javadoc)
 
View Full Code Here

              ITextEditorActionConstants.SELECT_ALL));
      actionBars.setGlobalActionHandler(ActionFactory.FIND.getId(), getAction1(textEditor,
              ITextEditorActionConstants.FIND));
      actionBars.setGlobalActionHandler(IDEActionFactory.BOOKMARK.getId(), getAction1(textEditor,
              IDEActionFactory.BOOKMARK.getId()));
      actionBars.updateActionBars();
    }
  }

  private void createActions() {
View Full Code Here

        update();

        actionGroup = new ServicesViewerActionGroup(this);
        IActionBars actionBar = getViewSite().getActionBars();
        actionGroup.fillActionBars(actionBar);
        actionBar.updateActionBars();

        ResourcesPlugin.getWorkspace().addResourceChangeListener(changeListener);


    }
View Full Code Here

    for (ToggleOrientationAction fToggleOrientationAction : fToggleOrientationActions) {
      viewMenu.add(fToggleOrientationAction);
    }

    actionBars.updateActionBars();
  }

  private IStatusLineManager getStatusLine() {
    // we want to show messages globally hence we
    // have to go through the active part
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.