Examples of activateContext()


Examples of org.eclipse.ui.contexts.IContextService.activateContext()

      service = (IContextService) page.getWorkbenchWindow().getService(
          IContextService.class);
    }
        try {
          if (service!=null) {
            service.activateContext(ContextAuthority.DEFER_EVENTS);
          }
      for (Iterator iter = temp.iterator(); iter.hasNext();) {
        IActionSetDescriptor descriptor = (IActionSetDescriptor) iter
            .next();
        addAlwaysOn(descriptor);
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

            .next();
        addAlwaysOn(descriptor);
      }
    } finally {
      if (service!=null) {
        service.activateContext(ContextAuthority.SEND_EVENTS);
      }
        }
        newWizardShortcuts = layout.getNewWizardShortcuts();
        showViewShortcuts = layout.getShowViewShortcuts();
        perspectiveShortcuts = layout.getPerspectiveShortcuts();
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

        final IContextService service = (IContextService)page.getWorkbenchWindow().getService(IContextService.class);
        try { // one big try block, don't kill me here
      // defer context events
      if (service != null) {
        service.activateContext(ContextAuthority.DEFER_EVENTS);
      }

      HashSet knownActionSetIds = new HashSet();

      // Load the always on action sets.
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

    } finally {
          // restart context changes
          if (service != null) {
        StartupThreading.runWithoutExceptions(new StartupRunnable() {
          public void runWithException() throws Throwable {
            service.activateContext(ContextAuthority.SEND_EVENTS);
          }
        });
      }
        }
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

    //for dynamic UI
    /* package */void addActionSet(IActionSetDescriptor newDesc) {
      IContextService service = (IContextService)page.getWorkbenchWindow().getService(IContextService.class);
      try {
      service.activateContext(ContextAuthority.DEFER_EVENTS);
      for (int i = 0; i < alwaysOnActionSets.size(); i++) {
        IActionSetDescriptor desc = (IActionSetDescriptor) alwaysOnActionSets
            .get(i);
        if (desc.getId().equals(newDesc.getId())) {
          removeAlwaysOn(desc);
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

          break;
        }
      }
      addAlwaysOn(newDesc);
    } finally {
        service.activateContext(ContextAuthority.SEND_EVENTS);
      }
    }

    // for dynamic UI
    /* package */void removeActionSet(String id) {
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

    // for dynamic UI
    /* package */void removeActionSet(String id) {
      IContextService service = (IContextService)page.getWorkbenchWindow().getService(IContextService.class);
      try {
      service.activateContext(ContextAuthority.DEFER_EVENTS);
      for (int i = 0; i < alwaysOnActionSets.size(); i++) {
        IActionSetDescriptor desc = (IActionSetDescriptor) alwaysOnActionSets
            .get(i);
        if (desc.getId().equals(id)) {
          removeAlwaysOn(desc);
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

          removeAlwaysOff(desc);
          break;
        }
      }
    } finally {
        service.activateContext(ContextAuthority.SEND_EVENTS);
      }
    }
   
    void removeActionSet(IActionSetDescriptor toRemove) {
        removeAlwaysOn(toRemove);
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

    {
        if ( partRef.getPart( false ) == this )
        {
            IContextService contextService = ( IContextService ) PlatformUI.getWorkbench().getAdapter(
                IContextService.class );
            contextActivation = contextService.activateContext( BrowserCommonConstants.CONTEXT_WINDOWS );

            activateGlobalActionHandlers();
        }
    }
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

        actionGroup.fillToolBar( mainWidget.getToolBarManager() );
        actionGroup.fillMenu( mainWidget.getMenuManager() );
        actionGroup.fillContextMenu( mainWidget.getContextMenuManager() );
        IContextService contextService = ( IContextService ) PlatformUI.getWorkbench().getAdapter(
            IContextService.class );
        contextActivation = contextService.activateContext( BrowserCommonConstants.CONTEXT_DIALOGS );
        actionGroup.activateGlobalActionHandlers();

        // create the listener
        universalListener = new MultiValuedEntryEditorUniversalListener( mainWidget.getViewer(), configuration,
            actionGroup, actionGroup.getOpenDefaultEditorAction() );
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.