controller.selectModeForBuild(modeController);
Compat.macMenuChanges();
new UserPropertiesUpdater().importOldDefaultStyle();
EventQueue.invokeLater(new Runnable() {
public void run() {
final Options options = CommandLineParser.parse(args);
viewController.init(Controller.getCurrentController());
splash.toBack();
final Frame frame = viewController.getFrame();
final int extendedState = frame.getExtendedState();
Container contentPane = viewController.getContentPane();
contentPane.setVisible(false);
splash.dispose();
splash = null;
frame.setVisible(true);
if (extendedState != frame.getExtendedState()) {
frame.setExtendedState(extendedState);
}
loadMaps(options.getFilesToOpenAsArray());
focusCurrentView();
viewController.getContentPane().setVisible(true);
frame.toFront();
startupFinished = true;
System.setProperty("nonInteractive", Boolean.toString(options.isNonInteractive()));
try {
Thread.sleep(1000);
}
catch (InterruptedException e) {
e.printStackTrace();
}
MenuUtils.executeMenuItems(options.getMenuItemsToExecute());
}
private void focusCurrentView() {
final MapView currentMapView = (MapView) Controller.getCurrentController().getMapViewManager().getMapViewComponent();
if(currentMapView != null){