Package org.eclipse.ui.actions

Examples of org.eclipse.ui.actions.ActionFactory$WorkbenchCommandAction


  @Override
  protected void makeActions(IWorkbenchWindow window) {

    this.window = window;
    ActionFactory actionsToCreate[] = new ActionFactory[] { ActionFactory.NEW_WIZARD_DROP_DOWN,
        ActionFactory.NEW,
        ActionFactory.IMPORT,
        ActionFactory.EXPORT,
        ActionFactory.SAVE,
        ActionFactory.SAVE_ALL,
View Full Code Here


     * Set the cut, copy and paste actions into the global action handler.
     */
    private void setupActions() {
        Iterator actionKeys = actionMap.keySet().iterator();
        while (actionKeys.hasNext()) {
            ActionFactory key = (ActionFactory) actionKeys.next();
            IAction action = (IAction) actionMap.get(key);
            if (action != null) {
                IAction origAction =
                        actionBars.getGlobalActionHandler(key.getId());
                origActionMap.put(key, origAction);
                actionBars.setGlobalActionHandler(key.getId(), action);
            }
        }

        actionBars.updateActionBars();
    }
View Full Code Here

     * Restore the original global action handlers for cut, copy and paste.
     */
    private void restoreActions() {
        Iterator actionKeys = origActionMap.keySet().iterator();
        while (actionKeys.hasNext()) {
            ActionFactory key = (ActionFactory) actionKeys.next();
            IAction action = (IAction) origActionMap.get(key);
            if (action != null) {
                actionBars.setGlobalActionHandler(key.getId(), action);
            }
        }
        actionBars.updateActionBars();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.actions.ActionFactory$WorkbenchCommandAction

Copyright © 2018 www.massapicom. 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.