use of org.knime.workbench.editor2.actions.CheckUpdateMetaNodeLinkAction in project knime-core by knime.
the class WorkflowEditor method createActions.
/**
* Creates the editor actions.
*
* @see org.eclipse.gef.ui.parts.GraphicalEditor#createActions()
*/
@Override
protected void createActions() {
LOGGER.debug("creating editor actions...");
// super already does something for us...
super.createActions();
// Stack actions
StackAction undo = new UndoAction(this);
StackAction redo = new RedoAction(this);
// Editor Actions
WorkbenchPartAction delete = new NodeConnectionContainerDeleteAction(this);
WorkbenchPartAction save = new SaveAction(this);
WorkbenchPartAction saveAs = new SaveAsAction(this);
WorkbenchPartAction print = new PrintAction(this);
WorkbenchPartAction hideNodeName = new HideNodeNamesAction(this);
WorkbenchPartAction showNodeIdAction = new ShowNodeIdsAction(this);
// node actions
//
AbstractNodeAction openDialog = new OpenDialogAction(this);
AbstractNodeAction execute = new ExecuteAction(this);
AbstractNodeAction executeAll = new ExecuteAllAction(this);
AbstractNodeAction cancelAll = new CancelAllAction(this);
AbstractNodeAction cancel = new CancelAction(this);
AbstractNodeAction pause = new PauseLoopExecutionAction(this);
AbstractNodeAction step = new StepLoopAction(this);
AbstractNodeAction resume = new ResumeLoopAction(this);
AbstractNodeAction executeAndView = new ExecuteAndOpenViewAction(this);
AbstractNodeAction reset = new ResetAction(this);
AbstractNodeAction selectScope = new SelectLoopAction(this);
AbstractNodeAction setNameAndDescription = new SetNodeDescriptionAction(this);
AbstractNodeAction toggleFlowVarPorts = new ToggleFlowVarPortsAction(this);
AbstractNodeAction defaultOpenView = new DefaultOpenViewAction(this);
AbstractNodeAction metaNodeReConfigure = new MetaNodeReconfigureAction(this);
AbstractNodeAction metaNodeChangeLink = new ChangeMetaNodeLinkAction(this);
AbstractNodeAction defineMetaNodeTemplate = new SaveAsMetaNodeTemplateAction(this);
AbstractNodeAction checkUpdateMetaNodeLink = new CheckUpdateMetaNodeLinkAction(this);
AbstractNodeAction revealMetaNodeTemplate = new RevealMetaNodeTemplateAction(this);
AbstractNodeAction disconnectMetaNodeLink = new DisconnectMetaNodeLinkAction(this);
AbstractNodeAction lockMetaLink = new LockMetaNodeAction(this);
AbstractNodeAction subNodeReConfigure = new SubNodeReconfigureAction(this);
AbstractNodeAction subNodeChangeLink = new ChangeSubNodeLinkAction(this);
AbstractNodeAction defineSubNodeTemplate = new SaveAsSubNodeTemplateAction(this);
AbstractNodeAction checkUpdateSubNodeLink = new CheckUpdateMetaNodeLinkAction(this);
AbstractNodeAction revealSubNodeTemplate = new RevealSubNodeTemplateAction(this);
AbstractNodeAction disconnectSubNodeLink = new DisconnectSubNodeLinkAction(this);
AbstractNodeAction lockSubLink = new LockSubNodeAction(this);
// new annotation action
AddAnnotationAction annotation = new AddAnnotationAction(this);
// copy / cut / paste action
CopyAction copy = new CopyAction(this);
CutAction cut = new CutAction(this);
PasteAction paste = new PasteAction(this);
PasteActionContextMenu pasteContext = new PasteActionContextMenu(this);
CollapseMetaNodeAction collapse = new CollapseMetaNodeAction(this);
EncapsulateSubNodeAction encapsulate = new EncapsulateSubNodeAction(this);
ExpandMetaNodeAction expand = new ExpandMetaNodeAction(this);
ExpandSubNodeAction expandSub = new ExpandSubNodeAction(this);
ConvertMetaNodeToSubNodeAction wrap = new ConvertMetaNodeToSubNodeAction(this);
ConvertSubNodeToMetaNodeAction unWrap = new ConvertSubNodeToMetaNodeAction(this);
// register the actions
m_actionRegistry.registerAction(undo);
m_actionRegistry.registerAction(redo);
m_actionRegistry.registerAction(delete);
m_actionRegistry.registerAction(save);
m_actionRegistry.registerAction(saveAs);
m_actionRegistry.registerAction(print);
m_actionRegistry.registerAction(openDialog);
m_actionRegistry.registerAction(execute);
m_actionRegistry.registerAction(executeAll);
m_actionRegistry.registerAction(cancelAll);
m_actionRegistry.registerAction(cancel);
m_actionRegistry.registerAction(pause);
m_actionRegistry.registerAction(step);
m_actionRegistry.registerAction(resume);
m_actionRegistry.registerAction(executeAndView);
m_actionRegistry.registerAction(reset);
m_actionRegistry.registerAction(selectScope);
m_actionRegistry.registerAction(toggleFlowVarPorts);
m_actionRegistry.registerAction(setNameAndDescription);
m_actionRegistry.registerAction(defaultOpenView);
m_actionRegistry.registerAction(copy);
m_actionRegistry.registerAction(cut);
m_actionRegistry.registerAction(paste);
m_actionRegistry.registerAction(pasteContext);
m_actionRegistry.registerAction(hideNodeName);
m_actionRegistry.registerAction(showNodeIdAction);
m_actionRegistry.registerAction(collapse);
m_actionRegistry.registerAction(encapsulate);
m_actionRegistry.registerAction(expand);
m_actionRegistry.registerAction(expandSub);
m_actionRegistry.registerAction(wrap);
m_actionRegistry.registerAction(unWrap);
m_actionRegistry.registerAction(metaNodeReConfigure);
m_actionRegistry.registerAction(metaNodeChangeLink);
m_actionRegistry.registerAction(defineMetaNodeTemplate);
m_actionRegistry.registerAction(checkUpdateMetaNodeLink);
m_actionRegistry.registerAction(revealMetaNodeTemplate);
m_actionRegistry.registerAction(disconnectMetaNodeLink);
m_actionRegistry.registerAction(lockMetaLink);
m_actionRegistry.registerAction(subNodeReConfigure);
m_actionRegistry.registerAction(subNodeChangeLink);
m_actionRegistry.registerAction(defineSubNodeTemplate);
m_actionRegistry.registerAction(checkUpdateSubNodeLink);
m_actionRegistry.registerAction(revealSubNodeTemplate);
m_actionRegistry.registerAction(disconnectSubNodeLink);
m_actionRegistry.registerAction(lockSubLink);
m_actionRegistry.registerAction(annotation);
// remember ids for later updates via 'updateActions'
m_editorActions = new ArrayList<String>();
m_editorActions.add(undo.getId());
m_editorActions.add(redo.getId());
m_editorActions.add(delete.getId());
m_editorActions.add(save.getId());
m_editorActions.add(saveAs.getId());
m_editorActions.add(openDialog.getId());
m_editorActions.add(execute.getId());
m_editorActions.add(executeAll.getId());
m_editorActions.add(cancelAll.getId());
m_editorActions.add(executeAndView.getId());
m_editorActions.add(reset.getId());
m_editorActions.add(setNameAndDescription.getId());
m_editorActions.add(toggleFlowVarPorts.getId());
m_editorActions.add(defaultOpenView.getId());
m_editorActions.add(hideNodeName.getId());
m_editorActions.add(showNodeIdAction.getId());
m_editorActions.add(collapse.getId());
m_editorActions.add(expand.getId());
m_editorActions.add(unWrap.getId());
m_editorActions.add(copy.getId());
m_editorActions.add(cut.getId());
m_editorActions.add(paste.getId());
m_editorActions.add(metaNodeReConfigure.getId());
m_editorActions.add(subNodeReConfigure.getId());
m_editorActions.add(metaNodeChangeLink.getId());
m_editorActions.add(defineMetaNodeTemplate.getId());
m_editorActions.add(checkUpdateMetaNodeLink.getId());
m_editorActions.add(annotation.getId());
}
Aggregations