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);
}
}
}
Aggregations