Search in sources :

Example 1 with FindReplaceAction

use of com.cubrid.tool.editor.action.FindReplaceAction 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));
}
Also used : FindReplaceAction(com.cubrid.tool.editor.action.FindReplaceAction) RedoActionHandler(org.eclipse.ui.operations.RedoActionHandler) TextEditorAction(com.cubrid.tool.editor.action.TextEditorAction) UndoActionHandler(org.eclipse.ui.operations.UndoActionHandler)

Aggregations

FindReplaceAction (com.cubrid.tool.editor.action.FindReplaceAction)1 TextEditorAction (com.cubrid.tool.editor.action.TextEditorAction)1 RedoActionHandler (org.eclipse.ui.operations.RedoActionHandler)1 UndoActionHandler (org.eclipse.ui.operations.UndoActionHandler)1