(ControlOverrides overrides)
| 200 | } |
| 201 | |
| 202 | public void init(ControlOverrides overrides) throws SAXException, IOException, Exception { |
| 203 | getOptionsParam().load(Constant.getInstance().FILE_CONFIG, overrides); |
| 204 | |
| 205 | if (overrides.isExperimentalDb()) { |
| 206 | LOGGER.info("Using experimental database :/"); |
| 207 | db = DbSQL.getSingleton().initDatabase(); |
| 208 | } else { |
| 209 | db = new ParosDatabase(); |
| 210 | } |
| 211 | db.setDatabaseOptions(getOptionsParam().getDatabaseParam()); |
| 212 | |
| 213 | createAndOpenUntitledDb(); |
| 214 | |
| 215 | HistoryReference.setTableHistory(getDb().getTableHistory()); |
| 216 | HistoryReference.setTableTag(getDb().getTableTag()); |
| 217 | HistoryReference.setTableAlert(getDb().getTableAlert()); |
| 218 | } |
| 219 | |
| 220 | public static Model getSingleton() { |
| 221 | if (model == null) { |
nothing calls this directly
no test coverage detected