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; }
DatabaseMetaInformation dmi = new DatabaseMetaInformation( databaseMeta ); dmi.getData( new LoggingObject( "Auto Modeler" ), null ); // reads the metadata from the database, optional
DatabaseMetaInformation dmi = new DatabaseMetaInformation( databaseMeta ); dmi.getData( new LoggingObject( "Auto Modeler" ), null ); // reads the metadata from the database, optional progress