splash.progress(100);
splash.setVisible(false);
} else {
splash.setMessage("Building controller ...");
// try {
final ApplicationController applicationController = new ApplicationController(resultMode);
applicationController.getView().setIconImages(iconList);
splash.progress(40);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
splash.setMessage("Loading preferences ...");
applicationController.loadPreferences();
splash.progress(50);
} catch (SalsaPreferencesException e1) {
LOGGER.error("Cannot load preferences {}", e1.getMessage());
LOGGER.trace("Stack trace", 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) {
LOGGER.error("Cannot loadLastPerspective{} {} ", perspectiveName, e.getMessage());
LOGGER.trace("Stack trace", e);
}
splash.setMessage("Loading last window bounds ...");
applicationController.loadLastWindowBounds();
splash.progress(90);
splash.progress(100);
splash.setVisible(false);