use of com.cubrid.tool.editor.action.TextEditorAction in project cubrid-manager by CUBRID.
the class CUBRIDTextEditor method createActions.
/**
* Create actions of editor.
*
*/
protected void createActions() {
//Do nothing.
UndoActionHandler undo = new UndoActionHandler(this.getSite(), undoManager.getUndoContext());
undo.setAccelerator(SWT.CTRL | 'z');
actions.put(ActionFactory.UNDO.getId(), undo);
RedoActionHandler redo = new RedoActionHandler(this.getSite(), undoManager.getUndoContext());
redo.setAccelerator(SWT.CTRL | 'y');
actions.put(ActionFactory.REDO.getId(), redo);
actions.put(ActionFactory.CUT.getId(), new TextEditorAction(Messages.menuCut, this, ITextOperationTarget.CUT));
actions.put(ActionFactory.COPY.getId(), new TextEditorAction(Messages.menuCopy, this, ITextOperationTarget.COPY));
actions.put(ActionFactory.PASTE.getId(), new TextEditorAction(Messages.menuPast, this, ITextOperationTarget.PASTE));
actions.put(ActionFactory.FIND.getId(), new FindReplaceAction(Messages.menuFindReplace));
}
Aggregations