use of org.knime.workbench.ui.wfvars.WorkflowVariablesDialog in project knime-core by knime.
the class OpenWorkflowVariablesDialogAction method run.
/**
* {@inheritDoc}
*/
@Override
public void run() {
super.run();
// get workflow
final WorkflowManager wf = getWorkflow();
// open the dialog
final Display d = Display.getDefault();
// run in UI thread
d.asyncExec(new Runnable() {
@Override
public void run() {
// and put it into the workflow variables dialog
WorkflowVariablesDialog dialog = new WorkflowVariablesDialog(d.getActiveShell(), wf);
dialog.open();
}
});
}
Aggregations