Search in sources :

Example 1 with AssignJobWizardDialog

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;
}
Also used : PropertyChangeCommand(org.talend.designer.core.ui.editor.cmd.PropertyChangeCommand) AssignJobWizardDialog(org.talend.camel.designer.ui.wizards.AssignJobWizardDialog) AssignJobWizardDialog(org.talend.camel.designer.ui.wizards.AssignJobWizardDialog) WizardDialog(org.eclipse.jface.wizard.WizardDialog) AssignJobWizard(org.talend.camel.designer.ui.wizards.AssignJobWizard)

Aggregations

WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 AssignJobWizard (org.talend.camel.designer.ui.wizards.AssignJobWizard)1 AssignJobWizardDialog (org.talend.camel.designer.ui.wizards.AssignJobWizardDialog)1 PropertyChangeCommand (org.talend.designer.core.ui.editor.cmd.PropertyChangeCommand)1