splash.setVisible(false);
}
else {
splash.setMessage("Building controller ...");
// try {
final ApplicationController applicationController = new ApplicationController(
resultMode);
splash.progress(40);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
splash.setMessage("Loading preferences ...");
applicationController.loadPreferences();
splash.progress(50);
}
catch (SalsaPreferencesException e1) {
printCorrectUsageAndExit(e1);
}
splash.setMessage("Building GUI ...");
applicationController.setViewVisible(true);
splash.toFront();
splash.progress(60);
try {
splash.setMessage("Loading perspective ...");
applicationController.loadLastPerspective(perspectiveName);
splash.progress(70);
splash.setMessage("Set default configuration ...");
applicationController.setConfigPath(configName);
splash.progress(80);
}
catch (SalsaPerspectiveException e) {
// e.printStackTrace();
}
splash.setMessage("Loading last window bounds ...");
applicationController.loadLastWindowBounds();
splash.progress(90);
splash.setMessage("Refreshing historic log ...");
applicationController.refreshHistoricLog();
splash.progress(95);
splash.progress(100);
splash.setVisible(false);