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());
}
}
Aggregations