Search in sources :

Example 1 with CutDeleteAction

use of org.csstudio.display.builder.editor.rcp.actions.CutDeleteAction in project org.csstudio.display.builder by kasemir.

the class DisplayEditorPart method createRetargetableActionHandlers.

private void createRetargetableActionHandlers(final Control fx_canvas) {
    actions.put(ActionFactory.UNDO.getId(), new UndoAction(editor));
    actions.put(ActionFactory.REDO.getId(), new RedoAction(editor));
    actions.put(ActionFactory.CUT.getId(), new CutDeleteAction(editor, true));
    actions.put(ActionFactory.COPY.getId(), new CopyAction(editor));
    actions.put(ActionFactory.PASTE.getId(), new PasteAction(fx_canvas, editor));
    actions.put(ActionFactory.DELETE.getId(), new CutDeleteAction(editor, false));
    actions.put(ActionFactory.SELECT_ALL.getId(), new SelectAllAction(editor));
}
Also used : PasteAction(org.csstudio.display.builder.editor.rcp.actions.PasteAction) CutDeleteAction(org.csstudio.display.builder.editor.rcp.actions.CutDeleteAction) CopyAction(org.csstudio.display.builder.editor.rcp.actions.CopyAction) SelectAllAction(org.csstudio.display.builder.editor.rcp.actions.SelectAllAction) RedoAction(org.csstudio.display.builder.editor.rcp.actions.RedoAction) UndoAction(org.csstudio.display.builder.editor.rcp.actions.UndoAction)

Aggregations

CopyAction (org.csstudio.display.builder.editor.rcp.actions.CopyAction)1 CutDeleteAction (org.csstudio.display.builder.editor.rcp.actions.CutDeleteAction)1 PasteAction (org.csstudio.display.builder.editor.rcp.actions.PasteAction)1 RedoAction (org.csstudio.display.builder.editor.rcp.actions.RedoAction)1 SelectAllAction (org.csstudio.display.builder.editor.rcp.actions.SelectAllAction)1 UndoAction (org.csstudio.display.builder.editor.rcp.actions.UndoAction)1