}
}
}
protected void createActions() {
final IActionBars actionBars = getSite().getActionBars();
// TextViewerAction action = new TextViewerAction(consoleOutputViewer,
// ITextOperationTarget.SELECT_ALL);
// action.configureAction(ConsoleMessages.TextConsolePage_SelectAllText,
// ConsoleMessages.TextConsolePage_SelectAllDescrip,
// ConsoleMessages.TextConsolePage_SelectAllDescrip);
// action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_SELECT_ALL);
// PlatformUI.getWorkbench().getHelpSystem()
// .setHelp(action, IConsoleHelpContextIds.CONSOLE_SELECT_ALL_ACTION);
// setGlobalAction(actionBars, ActionFactory.SELECT_ALL.getId(),
// action);
//
// action = new TextViewerAction(consoleOutputViewer,
// ITextOperationTarget.CUT);
// action.configureAction(ConsoleMessages.TextConsolePage_CutText,
// ConsoleMessages.TextConsolePage_CutDescrip,
// ConsoleMessages.TextConsolePage_CutDescrip);
// action.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages()
// .getImageDescriptor(ISharedImages.IMG_TOOL_CUT));
// action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_CUT);
// PlatformUI.getWorkbench().getHelpSystem()
// .setHelp(action, IConsoleHelpContextIds.CONSOLE_CUT_ACTION);
// setGlobalAction(actionBars, ActionFactory.CUT.getId(), action);
//
// action = new TextViewerAction(consoleOutputViewer,
// ITextOperationTarget.COPY);
// action.configureAction(ConsoleMessages.TextConsolePage_CopyText,
// ConsoleMessages.TextConsolePage_CopyDescrip,
// ConsoleMessages.TextConsolePage_CopyDescrip);
// action.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages()
// .getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
// action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_COPY);
// PlatformUI.getWorkbench().getHelpSystem()
// .setHelp(action, IConsoleHelpContextIds.CONSOLE_COPY_ACTION);
// setGlobalAction(actionBars, ActionFactory.COPY.getId(), action);
// fClearOutputAction = new ClearOutputAction(fConsole);
final ResourceBundle bundle = ConsoleResourceBundleMessages.getBundle();
final FindReplaceAction fraction = new FindReplaceAction(bundle,
"find_replace_action_", fConsoleView); //$NON-NLS-1$
PlatformUI.getWorkbench().getHelpSystem()
.setHelp(fraction, IConsoleHelpContextIds.CONSOLE_FIND_REPLACE_ACTION);
setGlobalAction(actionBars, ActionFactory.FIND.getId(), fraction);
// fSelectionActions.add(ActionFactory.CUT.getId());
// fSelectionActions.add(ActionFactory.COPY.getId());
fSelectionActions.add(ActionFactory.FIND.getId());
actionBars.updateActionBars();
}