use of org.talend.camel.designer.ui.wizards.AssignJobWizardDialog in project tesb-studio-se by Talend.
the class RouteInputProcessTypeController method createButtonCommand.
protected Command createButtonCommand(Button button) {
AssignJobWizard assignJobWizard = new AssignJobWizard();
WizardDialog wizardDialog = new AssignJobWizardDialog(button.getShell(), assignJobWizard);
if (wizardDialog.open() == WizardDialog.OK) {
String id = assignJobWizard.getSelectedProcessId();
if (id != null) {
String paramName = (String) button.getData(PARAMETER_NAME);
return new PropertyChangeCommand(elem, paramName, id);
}
}
return null;
}
Aggregations