showHelp();
System.exit(0);
}
final SplashScreen splash = new SplashScreen();
final ProgressMonitor monitor = splash.getProgressMonitor();
monitor.beginTask(tr("Initializing"));
splash.setVisible(Main.pref.getBoolean("draw.splashscreen", true));
Main.setInitStatusListener(new InitStatusListener() {
@Override
public void updateStatus(String event) {
monitor.indeterminateSubTask(event);
}
});
Collection<PluginInformation> pluginsToLoad = PluginHandler.buildListOfPluginsToLoad(splash,monitor.createSubTaskMonitor(1, false));
if (!pluginsToLoad.isEmpty() && PluginHandler.checkAndConfirmPluginUpdate(splash)) {
monitor.subTask(tr("Updating plugins"));
pluginsToLoad = PluginHandler.updatePlugins(splash, null, monitor.createSubTaskMonitor(1, false), false);
}
monitor.indeterminateSubTask(tr("Installing updated plugins"));
PluginHandler.installDownloadedPlugins(true);
monitor.indeterminateSubTask(tr("Loading early plugins"));
PluginHandler.loadEarlyPlugins(splash,pluginsToLoad, monitor.createSubTaskMonitor(1, false));
monitor.indeterminateSubTask(tr("Setting defaults"));
preConstructorInit(args);
monitor.indeterminateSubTask(tr("Creating main GUI"));
final Main main = new MainApplication(mainFrame);
monitor.indeterminateSubTask(tr("Loading plugins"));
PluginHandler.loadLatePlugins(splash,pluginsToLoad, monitor.createSubTaskMonitor(1, false));
toolbar.refreshToolbarControl();
// Wait for splash disappearance (fix #9714)
GuiHelper.runInEDTAndWait(new Runnable() {
@Override