Examples of activateHandler()


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

          IAction action= (IAction)fGlobalActions.get(ITextEditorActionConstants.REDO);
          handlerActivations.add(handlerService.activateHandler(IWorkbenchCommandConstants.EDIT_REDO, new ActionHandler(action), expression));
          action= (IAction)fGlobalActions.get(ITextEditorActionConstants.UNDO);
          handlerActivations.add(handlerService.activateHandler(IWorkbenchCommandConstants.EDIT_UNDO, new ActionHandler(action), expression));
          action= (IAction)fGlobalActions.get(ITextEditorActionConstants.CONTENT_ASSIST);
          handlerActivations.add(handlerService.activateHandler(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS, new ActionHandler(action), expression));
        }
      });

      TextViewerAction action= new TextViewerAction(fPatternEditor, ITextOperationTarget.UNDO);
      action.setText(TemplatesMessages.EditTemplateDialog_undo);
View Full Code Here

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

  private void activateHandler(CommandConfig commandConfig, String commandId)
  {
    IHandlerService handlerService = (IHandlerService) getHandlerService(getServiceLocator());
    IHandler handler = this.createHandlerForCustomCommand(commandConfig);
    IHandlerActivation handlerActivation = handlerService.activateHandler(
        commandId, handler);
    this.setHandlerActivationInCommandConfig(commandConfig, handlerActivation);
  }

  /**
 
View Full Code Here

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

                {
                    showPossibleCompletions();
                    return null;
                }
            };
            handlerActivation = handlerService.activateHandler(
                ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS, handler );
        }
    }

View Full Code Here

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

                {
                    showPossibleCompletions();
                    return null;
                }
            };
            this.handlerActivation = handlerService.activateHandler(
                ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS, handler );
        }
    }

View Full Code Here

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

        if (service == null)
          return;

        if (cutAction != null) {
          cutAction.update();
          cutHandlerActivation = service.activateHandler(
              IWorkbenchCommandConstants.EDIT_CUT,
              new ActionHandler(cutAction),
              new ActiveShellExpression(getParent().getShell()));
        }
        copyAction.update();
View Full Code Here

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

              new ActionHandler(cutAction),
              new ActiveShellExpression(getParent().getShell()));
        }
        copyAction.update();

        copyHandlerActivation = service.activateHandler(
            IWorkbenchCommandConstants.EDIT_COPY,
            new ActionHandler(copyAction),
            new ActiveShellExpression(getParent().getShell()));
        if (pasteAction != null)
          this.pasteHandlerActivation = service.activateHandler(
View Full Code Here

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

        copyHandlerActivation = service.activateHandler(
            IWorkbenchCommandConstants.EDIT_COPY,
            new ActionHandler(copyAction),
            new ActiveShellExpression(getParent().getShell()));
        if (pasteAction != null)
          this.pasteHandlerActivation = service.activateHandler(
              IWorkbenchCommandConstants.EDIT_PASTE,
              new ActionHandler(pasteAction),
              new ActiveShellExpression(getParent().getShell()));
        selectAllHandlerActivation = service.activateHandler(
            IWorkbenchCommandConstants.EDIT_SELECT_ALL,
View Full Code Here

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

        if (pasteAction != null)
          this.pasteHandlerActivation = service.activateHandler(
              IWorkbenchCommandConstants.EDIT_PASTE,
              new ActionHandler(pasteAction),
              new ActiveShellExpression(getParent().getShell()));
        selectAllHandlerActivation = service.activateHandler(
            IWorkbenchCommandConstants.EDIT_SELECT_ALL,
            new ActionHandler(selectAllAction),
            new ActiveShellExpression(getParent().getShell()));
        if (undoAction != null)
          undoHandlerActivation = service.activateHandler(
View Full Code Here

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

        selectAllHandlerActivation = service.activateHandler(
            IWorkbenchCommandConstants.EDIT_SELECT_ALL,
            new ActionHandler(selectAllAction),
            new ActiveShellExpression(getParent().getShell()));
        if (undoAction != null)
          undoHandlerActivation = service.activateHandler(
              IWorkbenchCommandConstants.EDIT_UNDO,
              new ActionHandler(undoAction),
              new ActiveShellExpression(getParent().getShell()));
        if (redoAction != null)
          redoHandlerActivation = service.activateHandler(
View Full Code Here

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

          undoHandlerActivation = service.activateHandler(
              IWorkbenchCommandConstants.EDIT_UNDO,
              new ActionHandler(undoAction),
              new ActiveShellExpression(getParent().getShell()));
        if (redoAction != null)
          redoHandlerActivation = service.activateHandler(
              IWorkbenchCommandConstants.EDIT_REDO,
              new ActionHandler(redoAction),
              new ActiveShellExpression(getParent().getShell()));
        if (quickFixActionHandler != null)
          quickFixHandlerActivation = getHandlerService().activateHandler(
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.