if (cutAction != null) {
cutAction.update();
cutHandlerActivation = service.activateHandler(
IWorkbenchCommandConstants.EDIT_CUT,
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(
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(
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(
quickFixActionHandler.getAction().getActionDefinitionId(),
quickFixActionHandler,
new ActiveShellExpression(getParent().getShell()));
if (contentAssistActionHandler != null)
contentAssistHandlerActivation = getHandlerService().activateHandler(
contentAssistActionHandler.getAction().getActionDefinitionId(),
contentAssistActionHandler,
new ActiveShellExpression(getParent().getShell()));
}
public void focusLost(FocusEvent e) {
IHandlerService service = getHandlerService();
if (service == null)