Changeset 15147 in josm
- Timestamp:
- 2019-05-30T23:26:43+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainInitialization.java
r14480 r15147 13 13 14 14 import org.openstreetmap.gui.jmapviewer.FeatureAdapter; 15 import org.openstreetmap.gui.jmapviewer.FeatureAdapter.SettingsAdapter; 15 16 import org.openstreetmap.josm.data.UndoRedoHandler; 16 17 import org.openstreetmap.josm.data.coor.conversion.CoordinateFormatManager; … … 144 145 FeatureAdapter.registerTranslationAdapter(I18n::tr); 145 146 FeatureAdapter.registerLoggingAdapter(name -> Logging.getLogger()); 147 FeatureAdapter.registerSettingsAdapter(new JosmSettingsAdapter()); 146 148 // UI update 147 149 MainApplication.toolbar.refreshToolbarControl(); … … 151 153 ); 152 154 } 155 156 private static class JosmSettingsAdapter implements SettingsAdapter { 157 158 @Override 159 public String get(String key, String def) { 160 return Config.getPref().get(key, def); 161 } 162 163 @Override 164 public boolean put(String key, String value) { 165 return Config.getPref().put(key, value); 166 } 167 } 153 168 }
Note:
See TracChangeset
for help on using the changeset viewer.