Changeset 12841 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java
- Timestamp:
- 2017-09-13T16:30:27+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java
r12786 r12841 28 28 import org.openstreetmap.josm.data.coor.conversion.CoordinateFormatManager; 29 29 import org.openstreetmap.josm.data.coor.conversion.ICoordinateFormat; 30 import org.openstreetmap.josm.data.preferences. CollectionProperty;30 import org.openstreetmap.josm.data.preferences.ListProperty; 31 31 import org.openstreetmap.josm.data.preferences.StringProperty; 32 32 import org.openstreetmap.josm.data.projection.CustomProjection; … … 291 291 private static final StringProperty PROP_PROJECTION_DEFAULT = new StringProperty("projection.default", mercator.getId()); 292 292 private static final StringProperty PROP_COORDINATES = new StringProperty("coordinates", null); 293 private static final CollectionProperty PROP_SUB_PROJECTION_DEFAULT = new CollectionProperty("projection.default.sub", null);293 private static final ListProperty PROP_SUB_PROJECTION_DEFAULT = new ListProperty("projection.default.sub", null); 294 294 private static final String[] unitsValues = ALL_SYSTEMS.keySet().toArray(new String[ALL_SYSTEMS.size()]); 295 295 private static final String[] unitsValuesTr = new String[unitsValues.length]; … … 482 482 } 483 483 id = pc.getId(); 484 Main.pref.put Collection("projection.sub."+id, pref);484 Main.pref.putList("projection.sub."+id, pref == null ? null : new ArrayList<>(pref)); 485 485 if (makeDefault) { 486 486 PROP_PROJECTION_DEFAULT.put(id); 487 PROP_SUB_PROJECTION_DEFAULT.put(pref );487 PROP_SUB_PROJECTION_DEFAULT.put(pref == null ? null : new ArrayList<>(pref)); 488 488 } else { 489 489 projectionChoice = id; … … 560 560 */ 561 561 public static Collection<String> getSubprojectionPreference(String pcId) { 562 return Main.pref.get Collection("projection.sub."+pcId, null);562 return Main.pref.getList("projection.sub."+pcId, null); 563 563 } 564 564
Note:
See TracChangeset
for help on using the changeset viewer.