DBConnectionInfo dataSourceInfo = connectWizard.getConnectionInfo();
// from here pass control to DbLoaderHelper, running it from a thread separate
// from EventDispatch
final DbLoaderHelper helper = new DbLoaderHelper(
getProjectController(),
connection,
adapter,
dataSourceInfo.getUserName());
Thread th = new Thread(new Runnable() {
public void run() {
helper.execute();
SwingUtilities.invokeLater(new Runnable() {
public void run() {
application.getUndoManager().discardAllEdits();