load.run();
}
}
else {
// We are in wizard mode. Create it.
Wizard wiz = new Wizard(new BuildData());
// XXX this is temporary for testing. Eventually
// it will launch the regular antidote screen with the
// results of the wizard.
wiz.addWizardListener(new WizardListener() {
public void finished(Object model) {
BuildData data = (BuildData) model;
System.out.println(data.createProject());
System.exit(0);
}
public void canceled() {
System.exit(0);
}