Search in sources :

Example 1 with SubnodeLayoutWizard

use of org.knime.workbench.editor2.subnode.SubnodeLayoutWizard in project knime-core by knime.

the class SubnodeLayoutAction method runOnNodes.

/**
 * {@inheritDoc}
 */
@Override
public void runOnNodes(final NodeContainerEditPart[] nodeParts) {
    WorkflowManager manager = getManager();
    SubNodeContainer subnode = (SubNodeContainer) manager.getDirectNCParent();
    SubnodeLayoutWizard wizard = new SubnodeLayoutWizard(subnode);
    WizardDialog dlg = new WizardDialog(Display.getCurrent().getActiveShell(), wizard);
    dlg.create();
    dlg.open();
}
Also used : SubNodeContainer(org.knime.core.node.workflow.SubNodeContainer) WorkflowManager(org.knime.core.node.workflow.WorkflowManager) SubnodeLayoutWizard(org.knime.workbench.editor2.subnode.SubnodeLayoutWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 SubNodeContainer (org.knime.core.node.workflow.SubNodeContainer)1 WorkflowManager (org.knime.core.node.workflow.WorkflowManager)1 SubnodeLayoutWizard (org.knime.workbench.editor2.subnode.SubnodeLayoutWizard)1