@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; }
private void loadSettings() { commonSettings.loadSettings(); wmsSettings.loadSettings(); tmsSettings.loadSettings(); }