コード例 #1
0
  @Override
  public boolean ok() {
    layerInfo.save();
    ImageryLayerInfo.instance.clear();
    ImageryLayerInfo.instance.load(false);
    Main.main.menu.imageryMenu.refreshOffsetMenu();
    OffsetBookmark.saveBookmarks();

    if (!GraphicsEnvironment.isHeadless()) {
      DownloadDialog.getInstance().refreshTileSources();
    }

    boolean commonRestartRequired = commonSettings.saveSettings();
    boolean wmsRestartRequired = wmsSettings.saveSettings();
    boolean tmsRestartRequired = tmsSettings.saveSettings();

    return commonRestartRequired || wmsRestartRequired || tmsRestartRequired;
  }
コード例 #2
0
 private void loadSettings() {
   commonSettings.loadSettings();
   wmsSettings.loadSettings();
   tmsSettings.loadSettings();
 }