use of com.archimatetool.editor.diagram.actions.DeleteFromModelAction in project archi by archimatetool.
the class ArchimateDiagramEditor method createActions.
/**
* Add some extra Actions - *after* the graphical viewer has been created
*/
@Override
@SuppressWarnings("unchecked")
protected void createActions(GraphicalViewer viewer) {
super.createActions(viewer);
ActionRegistry registry = getActionRegistry();
IAction action;
// Delete from Model
action = new DeleteFromModelAction(this);
registry.registerAction(action);
getSelectionActions().add(action.getId());
// Viewpoints
for (IViewpoint viewPoint : ViewpointManager.INSTANCE.getAllViewpoints()) {
action = new ViewpointAction(this, viewPoint);
registry.registerAction(action);
}
// Find/Replace
action = new FindReplaceAction(getEditorSite().getWorkbenchWindow());
registry.registerAction(action);
// Generate View For
action = new GenerateViewAction(this);
registry.registerAction(action);
getSelectionActions().add(action.getId());
}
Aggregations