Examples of updateActionBars()


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

        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() {
      public void run() {
View Full Code Here

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

    fSelectionActions.add(ActionFactory.CUT.getId());
    fSelectionActions.add(ActionFactory.COPY.getId());
    fSelectionActions.add(ActionFactory.PASTE.getId());
    fSelectionActions.add(ActionFactory.FIND.getId());
   
    actionBars.updateActionBars();
    }
   
    /**
     * Configures an action for key bindings.
     *
 
View Full Code Here

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

          actionBars.setGlobalActionHandler(ActionFactory.SELECT_ALL.getId(),
              textEditor.getAction(ActionFactory.SELECT_ALL.getId()));
          actionBars.setGlobalActionHandler(ActionFactory.PRINT.getId(),
              textEditor.getAction(ActionFactory.PRINT.getId()));         
        }
        actionBars.updateActionBars();
      }

    }
  } 
 
View Full Code Here

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

    registerGlobalActionHandler(actionBars, ActionFactory.REDO.getId());
    registerGlobalActionHandler(actionBars, ActionFactory.COPY.getId());
    registerGlobalActionHandler(actionBars, ActionFactory.PASTE.getId());
    registerGlobalActionHandler(actionBars, ActionFactory.PRINT.getId());
    registerGlobalActionHandler(actionBars, ActionFactory.SAVE_AS.getId());
    actionBars.updateActionBars();
  }

  /**
   * Creates the Control of this outline page. By default this is a PageBook,
   * which can toggle between a hierarchical Outline and a graphical
View Full Code Here

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

    IActionBars bars = getSite().getActionBars();
    bars.setGlobalActionHandler(ActionFactory.UNDO.getId(), editor.getActionRegistry().getAction(ActionFactory.UNDO.getId()));
    bars.setGlobalActionHandler(ActionFactory.REDO.getId(), editor.getActionRegistry().getAction(ActionFactory.REDO.getId()));
    bars.setGlobalActionHandler(ActionFactory.DELETE.getId(), editor.getActionRegistry().getAction(ActionFactory.DELETE.getId()));
    bars.updateActionBars();

    getViewer().setKeyHandler(editor.getKeyHandler());
    ContextMenuProvider provider = new RiderEditorContextMenuProvider(editor, this, getViewer(), editor.getActionRegistry());
    getViewer().setContextMenu(provider);
  }
View Full Code Here

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

        terminateAllLaunchesAction = new TerminateAllLaunchesAction();

        toolbarManager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, restartLaunchAction);
        toolbarManager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, terminateAllLaunchesAction);

        bars.updateActionBars();

    }

    /* (non-Javadoc)
     * @see org.eclipse.debug.core.IDebugEventSetListener#handleDebugEvents(org.eclipse.debug.core.DebugEvent[])
View Full Code Here

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

    // deleted via the "Delete" action in the staging view can be restored.
    IUndoContext workspaceContext = (IUndoContext) ResourcesPlugin.getWorkspace().getAdapter(IUndoContext.class);
    undoRedoActionGroup = new UndoRedoActionGroup(getViewSite(), workspaceContext, true);
    undoRedoActionGroup.fillActionBars(actionBars);

    actionBars.updateActionBars();
  }

  private void setExpandCollapseActionsVisible(boolean visible) {
    for (IContributionItem item : unstagedToolBarManager.getItems())
      item.setVisible(visible);
View Full Code Here

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

        toolBarManager.add(new Separator(IntroConfigurer.TB_ADDITIONS));
        toolBarManager.add(homeAction);
        toolBarManager.add(backAction);
        toolBarManager.add(forwardAction);
        toolBarManager.update(true);
        actionBars.updateActionBars();
        updateNavigationActionsState();
    }


View Full Code Here

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

        // Handle menus:
        IActionBars actionBars = getIntroPart().getIntroSite().getActionBars();
        IToolBarManager toolBarManager = actionBars.getToolBarManager();
        toolBarManager.add(viewIntroModelAction);
        toolBarManager.update(true);
        actionBars.updateActionBars();
    }

    /**
     * Called when the Intro changes state. This method should not be
     * subclassed. It adds performance logging calls. Subclasses must implement
View Full Code Here

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

        toolBarManager.add(new Separator(IntroConfigurer.TB_ADDITIONS));
        toolBarManager.add(homeAction);
        toolBarManager.add(backAction);
        toolBarManager.add(forwardAction);
        toolBarManager.update(true);
        actionBars.updateActionBars();
        updateNavigationActionsState();
    }

    public void dynamicStandbyStateChanged(boolean standby,
            boolean isStandbyPartNeeded) {
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.