Examples of deactivateHandlers()


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

   * the collection. This should be called before every read.
   */
  private final void clearActivations() {
    final IHandlerService service = (IHandlerService) window
        .getService(IHandlerService.class);
    service.deactivateHandlers(handlerActivations);
    final Iterator activationItr = handlerActivations.iterator();
    while (activationItr.hasNext()) {
      final IHandlerActivation activation = (IHandlerActivation) activationItr
          .next();
      final IHandler handler = activation.getHandler();
View Full Code Here

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

            getActionPresentation().clearActionSets();

      // Remove the handler submissions. Bug 64024.
      final IWorkbench workbench = getWorkbench();
      final IHandlerService handlerService = (IHandlerService) workbench.getService(IHandlerService.class);
      handlerService.deactivateHandlers(handlerActivations);
      final Iterator activationItr = handlerActivations.iterator();
      while (activationItr.hasNext()) {
        final IHandlerActivation activation = (IHandlerActivation) activationItr
            .next();
        activation.getHandler().dispose();
View Full Code Here

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

      final Expression expression= new ActiveShellExpression(fPatternEditor.getControl().getShell());

      getShell().addDisposeListener(new DisposeListener() {

        public void widgetDisposed(DisposeEvent e) {
          handlerService.deactivateHandlers(handlerActivations);
        }
      });

      fPatternEditor.getTextWidget().addFocusListener(new FocusListener() {
        public void focusLost(FocusEvent e) {
View Full Code Here

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

        }
      });

      fPatternEditor.getTextWidget().addFocusListener(new FocusListener() {
        public void focusLost(FocusEvent e) {
          handlerService.deactivateHandlers(handlerActivations);
        }

        public void focusGained(FocusEvent e) {
          IAction action= (IAction)fGlobalActions.get(ITextEditorActionConstants.REDO);
          handlerActivations.add(handlerService.activateHandler(IWorkbenchCommandConstants.EDIT_REDO, new ActionHandler(action), expression));
View Full Code Here

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

    final ArrayList handlerActivations = new ArrayList(3);
    final IHandlerService handlerService = (IHandlerService) PlatformUI
        .getWorkbench().getAdapter(IHandlerService.class);
    getShell().addDisposeListener(new DisposeListener() {
      public void widgetDisposed(DisposeEvent e) {
        handlerService.deactivateHandlers(handlerActivations);
      }
    });

    Expression expression = new ActiveShellExpression(fPatternEditor
        .getControl().getShell());
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.