use of com.amalto.workbench.dialogs.SetupTransformerInputVariablesDialog in project tmdm-studio-se by Talend.
the class TransformerMainPage method executeProcess.
protected void executeProcess(final FormToolkit toolkit) {
try {
// check if we have a step to perfom
// ((WSTransformerV2)getXObject().getWsObject())
java.util.List<WSTransformerProcessStep> steps = transformer.getProcessSteps();
if ((steps == null) || (steps.size() == 0)) {
MessageDialog.openError(TransformerMainPage.this.getSite().getShell(), Messages.TransformerMainPage_ErrorTitle1, Messages.TransformerMainPage_ErrorMsg1);
return;
}
// perform save
performSave();
// Open form Dialog
if (transformerDialog == null) {
transformerDialog = new SetupTransformerInputVariablesDialog(TransformerMainPage.this.getSite().getShell(), toolkit, getXObject(), TransformerMainPage.this);
transformerDialog.create();
transformerDialog.getShell().setText(Messages.TransformerMainPage_DialogTitle);
}
openTransformerDialog();
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
}
Aggregations