public static void openDatabase(final JTree projectTree,final IDatabase database){
  openDatabaseThreaded(SwingUtilities.getWindowAncestor(projectTree),projectTree,database);
}

public static void openDatabase ( final JTree projectTree , final IDatabase database ) { openDatabaseThreaded ( SwingUtilities . getWindowAncestor ( projectTree ) , projectTree , database ) ; }
creates a connection to a given database .
