Changeset 12841 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.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/CustomProjectionChoice.java
r12620 r12841 72 72 } 73 73 }); 74 Collection<String> samples = Arrays.asList(74 List<String> samples = Arrays.asList( 75 75 "+proj=lonlat +ellps=WGS84 +datum=WGS84 +bounds=-180,-90,180,90", 76 76 "+proj=tmerc +lat_0=0 +lon_0=9 +k_0=1 +x_0=3500000 +y_0=0 +ellps=bessel +nadgrids=BETA2007.gsb"); 77 List<String> inputHistory = new LinkedList<>(Main.pref.get Collection("projection.custom.value.history", samples));77 List<String> inputHistory = new LinkedList<>(Main.pref.getList("projection.custom.value.history", samples)); 78 78 Collections.reverse(inputHistory); 79 79 cbInput.setPossibleItems(inputHistory); … … 149 149 public void rememberHistory() { 150 150 cbInput.addCurrentItemToHistory(); 151 Main.pref.put Collection("projection.custom.value.history", cbInput.getHistory());151 Main.pref.putList("projection.custom.value.history", cbInput.getHistory()); 152 152 } 153 153 }
Note:
See TracChangeset
for help on using the changeset viewer.