Search in sources :

Example 1 with WorkflowVariablesDialog

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();
        }
    });
}
Also used : WorkflowManager(org.knime.core.node.workflow.WorkflowManager) WorkflowVariablesDialog(org.knime.workbench.ui.wfvars.WorkflowVariablesDialog) Display(org.eclipse.swt.widgets.Display)

Aggregations

Display (org.eclipse.swt.widgets.Display)1 WorkflowManager (org.knime.core.node.workflow.WorkflowManager)1 WorkflowVariablesDialog (org.knime.workbench.ui.wfvars.WorkflowVariablesDialog)1