Examples of deactivateHandler()


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

        final IPageSite site = fPage.getSite();
        final IHandlerService handlerService = (IHandlerService) site
                .getService(IHandlerService.class);
        final IContextService contextService = (IContextService) site
                .getService(IContextService.class);
        handlerService.deactivateHandler(fActivatedHandler);
        contextService.deactivateContext(fActivatedContext);
    }

    @Override
    public void debugContextChanged(final DebugContextEvent event) {
View Full Code Here

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

        final Iterator iterator = activationsByActionId.values()
            .iterator();
        while (iterator.hasNext()) {
          final IHandlerActivation activation = (IHandlerActivation) iterator
              .next();
          service.deactivateHandler(activation);
          activation.getHandler().dispose();
        }
      }
      activationsByActionIdByServiceLocator.clear();
    }
View Full Code Here

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

            final Object value = activationsByActionId
                .remove(actionID);
            if (value instanceof IHandlerActivation) {
              final IHandlerActivation activation = (IHandlerActivation) value;
              actionIdByCommandId.remove(activation.getCommandId());
              service.deactivateHandler(activation);
              activation.getHandler().dispose();
            }
          } else if (commandId != null
              && actionIdByCommandId.containsKey(commandId)) {
            final Object value = activationsByActionId
View Full Code Here

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

              && actionIdByCommandId.containsKey(commandId)) {
            final Object value = activationsByActionId
                .remove(actionIdByCommandId.remove(commandId));
            if (value instanceof IHandlerActivation) {
              final IHandlerActivation activation = (IHandlerActivation) value;
              service.deactivateHandler(activation);
              activation.getHandler().dispose();
            }
          }
        }
View Full Code Here

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

            final Object value = activationsByActionId
                .remove(actionID);
            if (value instanceof IHandlerActivation) {
              final IHandlerActivation activation = (IHandlerActivation) value;
              actionIdByCommandId.remove(activation.getCommandId());
              service.deactivateHandler(activation);
              activation.getHandler().dispose();
            }
          }
        }
      }
View Full Code Here

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

        public void dispose() {
            final IHandlerService handlerService = (IHandlerService) PlatformUI
                    .getWorkbench().getAdapter(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()

   * 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()

                .getService(IHandlerService.class);
        if (service != null)
        {
            for (final IHandlerActivation activation : _handlers)
            {
                service.deactivateHandler(activation);
            }
        }
        _handlers.clear();
    }
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()

    {
        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
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.