()
| 179 | } |
| 180 | |
| 181 | private static void startupWithGUI() |
| 182 | { |
| 183 | // configure the UI before any type of user prompting may take place |
| 184 | configureUI(); |
| 185 | validateEnvironment(true); |
| 186 | loadProperties(true); |
| 187 | initPrintPreviewFonts(); |
| 188 | |
| 189 | new JFXPanel(); |
| 190 | |
| 191 | PCGenPreloader splash = new PCGenPreloader(); |
| 192 | PCGenTaskExecutor executor = new PCGenTaskExecutor(); |
| 193 | executor.addPCGenTask(createLoadPluginTask()); |
| 194 | executor.addPCGenTask(new GameModeFileLoader()); |
| 195 | executor.addPCGenTask(new CampaignFileLoader()); |
| 196 | executor.addPCGenTaskListener(splash); |
| 197 | executor.run(); |
| 198 | splash.getController().setProgress(LanguageBundle.getString("in_taskInitUi"), 1.0d); |
| 199 | FacadeFactory.initialize(); |
| 200 | PCGenUIManager.initializeGUI(); |
| 201 | splash.done(); |
| 202 | PCGenUIManager.startGUI(); |
| 203 | } |
| 204 | |
| 205 | private static void configureUI() |
| 206 | { |
no test coverage detected