use of com.amalto.workbench.webservices.WSTransformerProcessStep in project tmdm-studio-se by Talend.
the class TransformerMainPage method performAdd.
protected void performAdd() {
try {
if (stepText.getText().trim().length() == 0) {
return;
}
TransformerMainPage.this.comitting = true;
TransformerMainPage.this.stepsList.add(TransformerMainPage.this.stepText.getText());
//
WSTransformerV2 wsTransformer = transformer;
wsTransformer.getProcessSteps().add(new WSTransformerProcessStep(TransformerMainPage.this.stepText.getText(), false, new ArrayList(), new ArrayList(), "", ""));
TransformerMainPage.this.comitting = false;
int index = TransformerMainPage.this.stepsList.getItemCount() - 1;
TransformerMainPage.this.stepsList.select(index);
refreshStep(index);
TransformerMainPage.this.stepsList.forceFocus();
refreshOpenXSLTBtnState();
markDirtyWithoutCommit();
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
}
}
use of com.amalto.workbench.webservices.WSTransformerProcessStep in project tmdm-studio-se by Talend.
the class TransformerMainPage method beforeDoSave.
@Override
public boolean beforeDoSave() {
String processName = getXObject().getName();
if (processName.startsWith("beforeSaving_")) {
// $NON-NLS-1$
boolean has = false;
WSTransformerProcessStep processStep = stepWidget.getProcessStep();
for (WSTransformerVariablesMapping map : processStep.getOutputMappings()) {
if ("output_report".equals(map.getPipelineVariable())) {
// $NON-NLS-1$
has = true;
break;
}
}
if (!has) {
MessageDialog.openWarning(getSite().getShell(), Messages.Warning, Messages.bind(Messages.TransformerMainPage_OutputReportMissing, processName));
}
}
return super.beforeDoSave();
}
Aggregations