use of org.pentaho.di.ui.spoon.dialog.GetJobSQLProgressDialog in project pentaho-kettle by pentaho.
the class SpoonDBDelegate method getJobSQL.
/**
* Get & show the SQL required to run the loaded job entry...
*/
public void getJobSQL(JobMeta jobMeta) {
GetJobSQLProgressDialog pspd = new GetJobSQLProgressDialog(spoon.getShell(), jobMeta, spoon.getRepository());
List<SQLStatement> stats = pspd.open();
if (stats != null) {
if (stats.size() > 0) {
SQLStatementsDialog ssd = new SQLStatementsDialog(spoon.getShell(), jobMeta, SWT.NONE, stats);
ssd.open();
} else {
MessageBox mb = new MessageBox(spoon.getShell(), SWT.OK | SWT.ICON_INFORMATION);
mb.setMessage(BaseMessages.getString(PKG, "Spoon.Dialog.JobNoSQLNeedEexecuted.Message"));
mb.setText(BaseMessages.getString(PKG, "Spoon.Dialog.JobNoSQLNeedEexecuted.Title"));
mb.open();
}
}
}
Aggregations