Examples of deactivateHandler()


Examples of org.eclipse.ui.handlers.IHandlerService.deactivateHandler()

    {
        if ( handlerActivation != null )
        {
            IHandlerService handlerService = ( IHandlerService ) PlatformUI.getWorkbench().getAdapter(
                IHandlerService.class );
            handlerService.deactivateHandler( handlerActivation );
            handlerActivation = null;
        }

        if ( control != null )
        {
View Full Code Here

Examples of org.eclipse.ui.handlers.IHandlerService.deactivateHandler()

    {
        if ( handlerActivation != null )
        {
            IHandlerService handlerService = ( IHandlerService ) PlatformUI.getWorkbench().getAdapter(
                IHandlerService.class );
            handlerService.deactivateHandler( handlerActivation );
            handlerActivation = null;
        }
    }

}
View Full Code Here

Examples of org.eclipse.ui.handlers.IHandlerService.deactivateHandler()

   */
  public void dispose() {
    final IHandlerService handlerService = (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
    final Iterator iterator = activations.iterator();
    while (iterator.hasNext()) {
      handlerService.deactivateHandler((IHandlerActivation) iterator
          .next());
    }
    activations.clear();
   
  }
View Full Code Here

Examples of org.eclipse.ui.handlers.IHandlerService.deactivateHandler()

        editorPropChangeListnener = null;
      }
      if (pinEditorHandlerActivation != null) {
        // remove pin editor keyboard shortcut handler
        final IHandlerService handlerService = (IHandlerService) window.getWorkbench().getService(IHandlerService.class);
        handlerService.deactivateHandler(pinEditorHandlerActivation);
        pinEditorHandlerActivation = null;
      }
    }
  }
View Full Code Here

Examples of org.eclipse.ui.handlers.IHandlerService.deactivateHandler()

   * @since 3.1
   */
  public final void deactivateHandler() {
    if (handlerActivation != null) {
      final IHandlerService handlerService = (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
      handlerService.deactivateHandler(handlerActivation);
      handlerActivation = null;
    }
  }
}
View Full Code Here

Examples of org.eclipse.ui.handlers.IHandlerService.deactivateHandler()

    {
        if ( handlerActivation != null )
        {
            IHandlerService handlerService = ( IHandlerService ) PlatformUI.getWorkbench().getAdapter(
                IHandlerService.class );
            handlerService.deactivateHandler( handlerActivation );
            handlerActivation = null;
        }

        if ( control != null )
        {
View Full Code Here

Examples of org.eclipse.ui.handlers.IHandlerService.deactivateHandler()

    {
        if ( handlerActivation != null )
        {
            IHandlerService handlerService = ( IHandlerService ) PlatformUI.getWorkbench().getAdapter(
                IHandlerService.class );
            handlerService.deactivateHandler( handlerActivation );
            handlerActivation = null;
        }
    }

}
View Full Code Here

Examples of org.eclipse.ui.handlers.IHandlerService.deactivateHandler()

    {
        if ( this.handlerActivation != null )
        {
            IHandlerService handlerService = ( IHandlerService ) PlatformUI.getWorkbench().getAdapter(
                IHandlerService.class );
            handlerService.deactivateHandler( this.handlerActivation );
            this.handlerActivation = null;
        }

        if ( this.control != null )
        {
View Full Code Here

Examples of org.eclipse.ui.handlers.IHandlerService.deactivateHandler()

    {
        if ( this.handlerActivation != null )
        {
            IHandlerService handlerService = ( IHandlerService ) PlatformUI.getWorkbench().getAdapter(
                IHandlerService.class );
            handlerService.deactivateHandler( this.handlerActivation );
            this.handlerActivation = null;
        }
    }
}
View Full Code Here

Examples of org.eclipse.ui.handlers.IHandlerService.deactivateHandler()

      ITextEditor textEditor = tryCast(part, ITextEditor.class);
     
      IHandlerService handlerService = getHandlerService(textEditor);
     
      if(handlerActivation != null) {
        handlerService.deactivateHandler(handlerActivation);
        handlerActivation = null;
      }
      IHandler handler = getHandler(textEditor);
      if(handler != null) {
        handlerActivation = handlerService.activateHandler(commandId, handler);
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.