Search in sources :

Example 1 with StepErrorMetaDialog

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();
        }
    }
}
Also used : StepErrorMeta(org.pentaho.di.trans.step.StepErrorMeta) StepMeta(org.pentaho.di.trans.step.StepMeta) StepErrorMetaDialog(org.pentaho.di.ui.trans.step.StepErrorMetaDialog)

Aggregations

StepErrorMeta (org.pentaho.di.trans.step.StepErrorMeta)1 StepMeta (org.pentaho.di.trans.step.StepMeta)1 StepErrorMetaDialog (org.pentaho.di.ui.trans.step.StepErrorMetaDialog)1