final ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell );
final ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell );
final ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell );
public boolean open() { boolean retval = true; IRunnableWithProgress op = new IRunnableWithProgress() { public void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException { try { rep.save( jobMeta, versionComment, new ProgressMonitorAdapter( monitor ) ); } catch ( KettleException e ) { throw new InvocationTargetException( e, "Error saving job" ); } } }; try { ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( true, true, op ); } catch ( InvocationTargetException e ) { new ErrorDialog( shell, "Error saving job", "An error occured saving the job!", e ); retval = false; } catch ( InterruptedException e ) { new ErrorDialog( shell, "Error saving job", "An error occured saving the job!", e ); retval = false; } return retval; } }
public DatabaseMetaInformation open() { final DatabaseMetaInformation dmi = new DatabaseMetaInformation( dbInfo ); IRunnableWithProgress op = new IRunnableWithProgress() { public void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException { try { dmi.getData( Spoon.loggingObject, new ProgressMonitorAdapter( monitor ) ); } catch ( Exception e ) { throw new InvocationTargetException( e, BaseMessages.getString( PKG, "GetDatabaseInfoProgressDialog.Error.GettingInfoTable", e.toString() ) ); } } }; try { ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( true, true, op ); } catch ( InvocationTargetException e ) { showErrorDialog( e ); return null; } catch ( InterruptedException e ) { showErrorDialog( e ); return null; } return dmi; }
ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( false, false, op ); } catch ( InvocationTargetException e ) {
ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( true, false, op ); } catch ( InvocationTargetException e ) {
final ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell );
public void open() { final ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell );
public String[] open() { IRunnableWithProgress op = new IRunnableWithProgress() { public void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException { try { Xpaths = doScan( monitor ); } catch ( Exception e ) { e.printStackTrace(); throw new InvocationTargetException( e, BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Exception.ErrorScanningFile", filename, e.toString() ) ); } } }; try { ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( true, true, op ); } catch ( InvocationTargetException e ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.ErrorScanningFile.Title" ), BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.ErrorScanningFile.Message" ), e ); } catch ( InterruptedException e ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.ErrorScanningFile.Title" ), BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.ErrorScanningFile.Message" ), e ); } return Xpaths; }
public RowMetaAndData[] open() { IRunnableWithProgress op = new IRunnableWithProgress() { public void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException { try { fields = doScan( monitor ); } catch ( Exception e ) { e.printStackTrace(); throw new InvocationTargetException( e, BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.Exception.ErrorScanningFile", filename, e.toString() ) ); } } }; try { ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( true, true, op ); } catch ( InvocationTargetException e ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.ErrorScanningFile.Title" ), BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.ErrorScanningFile.Message" ), e ); } catch ( InterruptedException e ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.ErrorScanningFile.Title" ), BaseMessages.getString( PKG, "GetXMLDateLoopNodesImportProgressDialog.ErrorScanningFile.Message" ), e ); } return fields; }
ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( true, true, op ); } catch ( InvocationTargetException e ) {
ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( false, false, op ); } catch ( InvocationTargetException e ) {
ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( true, true, op ); } catch ( InvocationTargetException e ) {
ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( true, true, op ); } catch ( InvocationTargetException e ) {
ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( false, false, op ); } catch ( InvocationTargetException e ) {
ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( true, true, op );
ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( true, true, op ); } catch ( InvocationTargetException e ) {
ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell ); pmd.run( true, false, op ); } catch ( InvocationTargetException e ) {
boolean alreadyThrownError = false; try { final ProgressMonitorDialog pmd = new ProgressMonitorDialog( shell );