Package org.eclipse.ui.contexts

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


    annotationModel = viewer.getProjectionAnnotationModel();

    // register the editor scope context
    IContextService service = (IContextService) getSite().getService(IContextService.class);
    if (service != null) {
      service.activateContext("cucumber.eclipse.editor.featureEditorScope");
    }
  }

  public void updateFoldingStructure( List<Position> positions )
  {
View Full Code Here


        if ( partRef.getPart( false ) == this.view )
        {

            IContextService contextService = ( IContextService ) PlatformUI.getWorkbench().getAdapter(
                IContextService.class );
            contextActivation = contextService
                .activateContext( "org.apache.directory.ldapstudio.browser.action.context" );
            // org.eclipse.ui.contexts.dialogAndWindow
            // org.eclipse.ui.contexts.window
            // org.eclipse.ui.text_editor_context
View Full Code Here

        if ( partRef.getPart( false ) == this.entryEditor )
        {

            IContextService contextService = ( IContextService ) PlatformUI.getWorkbench().getAdapter(
                IContextService.class );
            contextActivation = contextService
                .activateContext( "org.apache.directory.ldapstudio.browser.action.context" );
            // org.eclipse.ui.contexts.dialogAndWindow
            // org.eclipse.ui.contexts.window
            // org.eclipse.ui.text_editor_context
View Full Code Here

            this.editor.getActionGroup().activateGlobalActionHandlers();

            IContextService contextService = ( IContextService ) PlatformUI.getWorkbench().getAdapter(
                IContextService.class );
            contextActivation = contextService
                .activateContext( "org.apache.directory.ldapstudio.browser.action.context" );

        }
    }
View Full Code Here

        if ( partRef.getPart( false ) == this )
        {

            IContextService contextService = ( IContextService ) PlatformUI.getWorkbench().getAdapter(
                IContextService.class );
            contextActivation = contextService
                .activateContext( "org.apache.directory.ldapstudio.browser.action.context" );

            this.activateGlobalActionHandlers();
        }
    }
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.