use of org.pentaho.di.ui.trans.step.StepErrorMetaDialog in project pentaho-kettle by pentaho.
the class SpoonStepsDelegate method editStepErrorHandling.
public void editStepErrorHandling(TransMeta transMeta, StepMeta stepMeta) {
if (stepMeta != null && stepMeta.supportsErrorHandling()) {
StepErrorMeta stepErrorMeta = stepMeta.getStepErrorMeta();
if (stepErrorMeta == null) {
stepErrorMeta = new StepErrorMeta(transMeta, stepMeta);
}
List<StepMeta> targetSteps = transMeta.findNextSteps(stepMeta);
// now edit this stepErrorMeta object:
StepErrorMetaDialog dialog = new StepErrorMetaDialog(spoon.getShell(), stepErrorMeta, transMeta, targetSteps);
if (dialog.open()) {
stepMeta.setStepErrorMeta(stepErrorMeta);
stepMeta.setChanged();
spoon.refreshGraph();
}
}
}
Aggregations