use of org.knime.workbench.editor2.meta.ReconfigureMetaNodeWizard in project knime-core by knime.
the class MetaNodeReconfigureAction method runOnNodes.
/**
* {@inheritDoc}
*/
@Override
public void runOnNodes(final NodeContainerEditPart[] nodeParts) {
if (nodeParts.length < 1) {
return;
}
NodeContainerEditPart ep = nodeParts[0];
WorkflowManager metanode = Wrapper.unwrapWFM(ep.getNodeContainer());
if (!metanode.unlock(new GUIWorkflowCipherPrompt())) {
return;
}
ReconfigureMetaNodeWizard wizard = new ReconfigureMetaNodeWizard(ep.getViewer(), metanode);
WizardDialog dlg = new WizardDialog(Display.getCurrent().getActiveShell(), wizard);
dlg.create();
dlg.open();
}
Aggregations