Search in sources :

Example 1 with EditorGridSettingsDialog

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

the class ChangeGridAction method runOnNodes.

/**
 * {@inheritDoc}
 */
@Override
public void runOnNodes(final NodeContainerEditPart[] nodeParts) {
    EditorGridSettingsDialog dlg = new EditorGridSettingsDialog(Display.getCurrent().getActiveShell(), getEditor().getCurrentEditorSettings());
    if (dlg.open() == Window.OK) {
        getEditor().markDirty();
        getEditor().applyEditorSettings(dlg.getSettings());
        getEditor().getWorkflowManager().get().setEditorUIInformation(dlg.getSettings());
    }
}
Also used : EditorGridSettingsDialog(org.knime.workbench.editor2.EditorGridSettingsDialog)

Aggregations

EditorGridSettingsDialog (org.knime.workbench.editor2.EditorGridSettingsDialog)1