Examples of deactivateHandler()


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

      Object handler = handlersByCommandId.get(cmdId);
      if (handler == next.getHandler()) {
        handlersByCommandId.remove(cmdId);
        newHandlers.add(next);
      } else {
        handlerService.deactivateHandler(next);
      }
    }

    final Shell shell = getShell();
    if (shell != null) {
View Full Code Here

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

   * Unregister the {@link IHandlerActivation} from the shell.
   */
  private void deactivateHandler() {
    IHandlerService handlerService= (IHandlerService)PlatformUI.getWorkbench().getAdapter(IHandlerService.class);
    if (handlerService != null)
      handlerService.deactivateHandler(fHandlerActivation);
    fHandlerActivation= null;
  }
}
View Full Code Here

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

      IHandlerService handlerService = this.getHandlerService(this
          .getServiceLocator());
      if (handlerService != null)
      {
        getLogFacility().logDebug("deactivating handler for: " + name);
        handlerService.deactivateHandler(handlerActivation);
        getLogFacility().logDebug("handler " + name + " deactivated.");
      }
    }
  }
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()

        IHandlerService service = getHandlerService();
        if (service == null)
          return;

        if (cutHandlerActivation != null)
          service.deactivateHandler(cutHandlerActivation);

        if (copyHandlerActivation != null)
          service.deactivateHandler(copyHandlerActivation);

        if (pasteHandlerActivation != null)
View Full Code Here

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

        if (cutHandlerActivation != null)
          service.deactivateHandler(cutHandlerActivation);

        if (copyHandlerActivation != null)
          service.deactivateHandler(copyHandlerActivation);

        if (pasteHandlerActivation != null)
          service.deactivateHandler(pasteHandlerActivation);

        if (selectAllHandlerActivation != null)
View Full Code Here

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

        if (copyHandlerActivation != null)
          service.deactivateHandler(copyHandlerActivation);

        if (pasteHandlerActivation != null)
          service.deactivateHandler(pasteHandlerActivation);

        if (selectAllHandlerActivation != null)
          service.deactivateHandler(selectAllHandlerActivation);

        if (undoHandlerActivation != null)
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.