Examples of updateActionBars()


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

                bundle, NLS_PREFIX + "find_replace.", this)); //$NON-NLS-1$

        selectionActions.add(ActionFactory.COPY.getId());
        selectionActions.add(ActionFactory.FIND.getId());

        actionBars.updateActionBars();
    }

    // orientation

    private void setOrientation(int orientation) {
View Full Code Here

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

            actionBars.setGlobalActionHandler(ActionFactory.COPY.getId(), getAction(editor, ITextEditorActionConstants.COPY));
            actionBars.setGlobalActionHandler(ActionFactory.PASTE.getId(), getAction(editor, ITextEditorActionConstants.PASTE));
            actionBars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(), getAction(editor, ITextEditorActionConstants.SELECT_ALL));
            actionBars.setGlobalActionHandler(ActionFactory.FIND.getId(), getAction(editor, ITextEditorActionConstants.FIND));
            actionBars.setGlobalActionHandler(IDEActionFactory.BOOKMARK.getId(), getAction(editor, IDEActionFactory.BOOKMARK.getId()));
            actionBars.updateActionBars();
        }
    }
}
View Full Code Here

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

            new ToggleDisplayAction(OPTIONAL, SHOW_OPTIONAL, HIDE_OPTIONAL));
        action.getMenuManager().add(
            new ToggleDisplayAction(SATISFIED, SHOW_SATISFIED, HIDE_SATISFIED));
        action.getMenuManager().add(
            new ToggleDisplayAction(UNSATISFIED, SHOW_UNSATISFIED, HIDE_UNSATISFIED));
        action.updateActionBars();
    }

    private void createListeners()
    {
        IPartService ps = (IPartService) getViewSite().getService(IPartService.class);
View Full Code Here

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

        // fSelectionActions.add(ActionFactory.CUT.getId());
        // fSelectionActions.add(ActionFactory.COPY.getId());
        fSelectionActions.add(ActionFactory.FIND.getId());

        actionBars.updateActionBars();
    }

    protected void setGlobalAction(final IActionBars actionBars, final String actionID,
            final IAction action) {
        fGlobalActions.put(actionID, action);
View Full Code Here

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

        getAction(editor, IDEActionFactory.BOOKMARK.getId()));
      actionBars.setGlobalActionHandler(
          "RulerDoubleClick",
          getAction(editor, ITextEditorActionConstants.RULER_DOUBLE_CLICK));
     
      actionBars.updateActionBars();
    }
  }
 
  private IAction getAction(ITextEditor editor, String action) {
    return editor.getAction(action);
View Full Code Here

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

                ITextEditorActionConstants.SELECT_ALL));
            actionBars.setGlobalActionHandler(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

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

                ITextEditorActionConstants.SELECT_ALL));
            actionBars.setGlobalActionHandler(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

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

              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

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

              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

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

                public void setGlobalActionHandler( String actionId, IAction handler ) {
                    global.setGlobalActionHandler(actionId, handler);
                }

                public void updateActionBars() {
                    global.updateActionBars();
                }

        public IServiceLocator getServiceLocator() {
          return global.getServiceLocator();
        }
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.