Package org.eclipse.ui.internal.registry

Examples of org.eclipse.ui.internal.registry.ActionSetRegistry$ActionSetPartAssociation


     *
     * @return the workbench action set registry
     */
    public ActionSetRegistry getActionSetRegistry() {
        if (actionSetRegistry == null) {
            actionSetRegistry = new ActionSetRegistry();
        }
        return actionSetRegistry;
    }
View Full Code Here


     * @see IWorkbenchPage
     */
    public void showActionSet(String actionSetID) {
        Perspective persp = getActivePerspective();
        if (persp != null) {
            ActionSetRegistry reg = WorkbenchPlugin.getDefault()
                 .getActionSetRegistry();
           
            IActionSetDescriptor desc = reg.findActionSet(actionSetID);
            if (desc != null) {
                persp.addActionSet(desc);
                window.updateActionSets();
                window.firePerspectiveChanged(this, getPerspective(),
                        CHANGE_ACTION_SET_SHOW);
View Full Code Here

  protected void makeActions(IWorkbenchWindow window) {
  }

  protected void fillMenuBar(IMenuManager menuBar) {
    ActionSetRegistry reg = WorkbenchPlugin.getDefault().getActionSetRegistry();
    IActionSetDescriptor[] actionSets = reg.getActionSets();
    String actionSetId = "ru.runa.jbpm.ui.actionSet";
    for (int i = 0; i < actionSets.length; i++) {
      if (actionSets[i].getId().equals(actionSetId))
        continue;
      IExtension ext = actionSets[i].getConfigurationElement().getDeclaringExtension();
      reg.removeExtension(ext, new Object[] { actionSets[i] });
    }
        IContextService contextService = (IContextService) PlatformUI.getWorkbench().getService(IContextService.class);
        contextService.activateContext("ru.runa.jbpm.ui.context");
  }
View Full Code Here

    }

    private void initializeActionSetInput() {
        // Just get the action sets at this point.  Do not load the action set until it
        // is actually selected in the dialog.
        ActionSetRegistry reg = WorkbenchPlugin.getDefault()
                .getActionSetRegistry();
        IActionSetDescriptor[] sets = reg.getActionSets();
        for (int i = 0; i < sets.length; i++) {
            ActionSetDescriptor actionSetDesc = (ActionSetDescriptor) sets[i];
            if (WorkbenchActivityHelper.filterItem(actionSetDesc)) {
        continue;
      }
View Full Code Here

    /**
     * Create the initial list of action sets.
     */
    private void createInitialActionSets(List outputList, List stringList) {
        ActionSetRegistry reg = WorkbenchPlugin.getDefault()
                .getActionSetRegistry();
        Iterator iter = stringList.iterator();
        while (iter.hasNext()) {
            String id = (String) iter.next();
            IActionSetDescriptor desc = reg.findActionSet(id);
            if (desc != null) {
        outputList.add(desc);
      } else {
        WorkbenchPlugin.log("Unable to find Action Set: " + id);//$NON-NLS-1$
      }
View Full Code Here

      // Add the visible set of action sets to our knownActionSetIds
      // Now go through the registry to ensure we pick up any new action
      // sets
      // that have been added but not yet considered by this perspective.
      ActionSetRegistry reg = WorkbenchPlugin.getDefault()
          .getActionSetRegistry();
      IActionSetDescriptor[] array = reg.getActionSets();
      int count = array.length;
      for (int i = 0; i < count; i++) {
        IActionSetDescriptor desc = array[i];
        if ((!knownActionSetIds.contains(desc.getId()))
            && (desc.isInitiallyVisible())) {
View Full Code Here

        /**
         * Checks to see if the cool item id is in the given window.
         */
        private boolean isValidCoolItemId(String id, WorkbenchWindow window) {
            ActionSetRegistry registry = WorkbenchPlugin.getDefault()
                    .getActionSetRegistry();
            if (registry.findActionSet(id) != null) {
        return true;
      }
            if (window != null) {
                return window.isWorkbenchCoolItemId(id);
            }
View Full Code Here

     */
    private void prefill() {
        addEditorArea();

        // Add default action sets.
        ActionSetRegistry reg = WorkbenchPlugin.getDefault()
                .getActionSetRegistry();
        IActionSetDescriptor[] array = reg.getActionSets();
        int count = array.length;
        for (int nX = 0; nX < count; nX++) {
            IActionSetDescriptor desc = array[nX];
            if (desc.isInitiallyVisible()) {
        addActionSet(desc.getId());
View Full Code Here

  public IWorkbench getWorkbench() {
    return PlatformUI.getWorkbench();
  }

  public String getToolbarLabel(String actionSetId) {
    ActionSetRegistry registry = WorkbenchPlugin.getDefault()
        .getActionSetRegistry();
    IActionSetDescriptor actionSet = registry.findActionSet(actionSetId);
    if (actionSet != null) {
      return actionSet.getLabel();
    }

    if (IWorkbenchActionConstants.TOOLBAR_FILE
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.registry.ActionSetRegistry$ActionSetPartAssociation

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.