}
public void loadInto() throws LoadException {
loadProgress = new LoadProgress2(targetModel.getFileSet().getRoot(), parent);
loadProgress.setPhases(phases);
final SwingWorker worker = new SwingWorker() {
public Object construct() {
run();
return null;
}
};
// start up the worker thread
worker.start();
loadTimer = new javax.swing.Timer(200, new TimerListener());
loadTimer.start();
// show a modal dialog, should block until loading done...
loadProgress.setIndeterminate(true);
((LoadProgress2) loadProgress).pack();
loadProgress.setVisible(true);
// but just in case it doesn't, we'll join on the worker
try {
worker.join();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// System.out.println("loadNew 6, ex: " + fileLoader.getException());