Search in sources :

Example 1 with CheckResultDialog

use of org.pentaho.di.ui.core.dialog.CheckResultDialog in project pentaho-kettle by pentaho.

the class Spoon method showLastTransCheck.

/**
 * Show the remarks of the last transformation check that was run.
 *
 * @see #checkTrans()
 */
public void showLastTransCheck() {
    TransMeta transMeta = getActiveTransformation();
    if (transMeta == null) {
        return;
    }
    TransGraph transGraph = delegates.trans.findTransGraphOfTransformation(transMeta);
    if (transGraph == null) {
        return;
    }
    CheckResultDialog crd = new CheckResultDialog(transMeta, shell, SWT.NONE, transGraph.getRemarks());
    String stepName = crd.open();
    if (stepName != null) {
        // Go to the indicated step!
        StepMeta stepMeta = transMeta.findStep(stepName);
        if (stepMeta != null) {
            delegates.steps.editStep(transMeta, stepMeta);
        }
    }
}
Also used : TransMeta(org.pentaho.di.trans.TransMeta) CheckResultDialog(org.pentaho.di.ui.core.dialog.CheckResultDialog) TransGraph(org.pentaho.di.ui.spoon.trans.TransGraph) ValueMetaString(org.pentaho.di.core.row.value.ValueMetaString) StepMeta(org.pentaho.di.trans.step.StepMeta)

Aggregations

ValueMetaString (org.pentaho.di.core.row.value.ValueMetaString)1 TransMeta (org.pentaho.di.trans.TransMeta)1 StepMeta (org.pentaho.di.trans.step.StepMeta)1 CheckResultDialog (org.pentaho.di.ui.core.dialog.CheckResultDialog)1 TransGraph (org.pentaho.di.ui.spoon.trans.TransGraph)1