Пример #1
0
 @FXML
 private void restoreConfiguration() {
   if (DialogUtils.showDefaultConfigurationFileMissingChoice(
       "Restore defaults", mainPane.getScene().getWindow())) {
     loadConfigurationFileAndShowErrorWhenApplicable(
         ConfigurationManager.getDefaultConfigurationFile());
   }
 }
Пример #2
0
  public void loadDefaultConfigurationFile() {
    final File defaultConfigurationFile = ConfigurationManager.getDefaultConfigurationFile();

    logger.info(
        "Default configuration file present ("
            + defaultConfigurationFile.getAbsolutePath()
            + ") = "
            + defaultConfigurationFile.exists());

    if (defaultConfigurationFile.exists()) {
      loadConfigurationFileAndShowErrorWhenApplicable(defaultConfigurationFile);
    }
  }