Examples of activateContext()


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

            final IWorkbenchPartSite site = workbenchSite.getSite();
            openAction = new OpenErlangAction(aSite, workbenchSite.getSelectionProvider());
            searchActionGroup = new ErlangSearchActionGroup(site);
            final IContextService service = (IContextService) site
                    .getService(IContextService.class);
            service.activateContext("org.erlide.ui.erlangOutlineAndNavigatorScope");
        }
    }

    @Override
    public void fillActionBars(final IActionBars actionBars) {
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();

            // hack to activate the action handlers when changing the selection
            mainWidget.getViewer().addSelectionChangedListener( new ISelectionChangedListener()
            {
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()

      // Update action sets

      IContextService service = (IContextService) window
          .getService(IContextService.class);
      try {
        service.activateContext(ContextAuthority.DEFER_EVENTS);
        if (newPersp != null) {
          IActionSetDescriptor[] newAlwaysOn = newPersp
              .getAlwaysOnActionSets();
          for (int i = 0; i < newAlwaysOn.length; i++) {
            IActionSetDescriptor descriptor = newAlwaysOn[i];
View Full Code Here

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

            actionSets.unmaskAction(descriptor);
          }
        }
      } finally {
        service.activateContext(ContextAuthority.SEND_EVENTS);
      }
    }
    }

    // for dynamic UI
View Full Code Here

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

      }

      IContextService service = (IContextService) window
          .getService(IContextService.class);
      try {
        service.activateContext(ContextAuthority.DEFER_EVENTS);

        // show the new
        for (int i = 0; i < newActionSets.size(); i++) {
          actionSets.showAction((IActionSetDescriptor) newActionSets
              .get(i));
View Full Code Here

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

        }

        oldActionSets = newActionSets;

      } finally {
        service.activateContext(ContextAuthority.SEND_EVENTS);
      }
      Perspective persp = getActivePerspective();
      if (persp == null) {
        return false;
      }
View Full Code Here

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

            {
                if ( partRef.getPart( false ) == instance )
                {
                    IContextService contextService = ( IContextService ) PlatformUI.getWorkbench().getAdapter(
                        IContextService.class );
                    contextActivation = contextService.activateContext( ApacheDsPluginConstants.CONTEXTS_SERVERS_VIEW );

                    ICommandService commandService = ( ICommandService ) PlatformUI.getWorkbench().getAdapter(
                        ICommandService.class );
                    if ( commandService != null )
                    {
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 EntryEditorWidgetUniversalListener( mainWidget.getViewer(), configuration, actionGroup,
            actionGroup.getOpenDefaultEditorAction() );
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.