((IUpdate) action).update();
}
}
protected void createTextActions() {
IActionBars actionBars = getViewSite().getActionBars();
TextViewerAction action = new TextViewerAction(
textViewer, ITextOperationTarget.SELECT_ALL);
action.configureAction(
BytecodeOutlinePlugin.getResourceString(NLS_PREFIX
+ "select_all.label"), BytecodeOutlinePlugin
.getResourceString(NLS_PREFIX + "select_all.tooltip"),
BytecodeOutlinePlugin.getResourceString(NLS_PREFIX
+ "select_all.description"));
setGlobalAction(actionBars, ActionFactory.SELECT_ALL.getId(), action);
action = new TextViewerAction(textViewer, ITextOperationTarget.COPY);
action.configureAction(
BytecodeOutlinePlugin.getResourceString(NLS_PREFIX + "copy.label"),
BytecodeOutlinePlugin
.getResourceString(NLS_PREFIX + "copy.tooltip"),
BytecodeOutlinePlugin.getResourceString(NLS_PREFIX
+ "copy.description"));
action.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages()
.getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
action.setActionDefinitionId(IWorkbenchActionDefinitionIds.COPY);
setGlobalAction(actionBars, ActionFactory.COPY.getId(), action);
ResourceBundle bundle = BytecodeOutlinePlugin.getDefault()
.getResourceBundle();
setGlobalAction(
actionBars, ActionFactory.FIND.getId(), new FindReplaceAction(
bundle, NLS_PREFIX + "find_replace.", this)); //$NON-NLS-1$
selectionActions.add(ActionFactory.COPY.getId());
selectionActions.add(ActionFactory.FIND.getId());
actionBars.updateActionBars();
}