Ignore:
Timestamp:
2017-09-13T16:30:27+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - fix deprecations caused by [12840]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java

    r12620 r12841  
    7272                }
    7373            });
    74             Collection<String> samples = Arrays.asList(
     74            List<String> samples = Arrays.asList(
    7575                    "+proj=lonlat +ellps=WGS84 +datum=WGS84 +bounds=-180,-90,180,90",
    7676                    "+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.getCollection("projection.custom.value.history", samples));
     77            List<String> inputHistory = new LinkedList<>(Main.pref.getList("projection.custom.value.history", samples));
    7878            Collections.reverse(inputHistory);
    7979            cbInput.setPossibleItems(inputHistory);
     
    149149        public void rememberHistory() {
    150150            cbInput.addCurrentItemToHistory();
    151             Main.pref.putCollection("projection.custom.value.history", cbInput.getHistory());
     151            Main.pref.putList("projection.custom.value.history", cbInput.getHistory());
    152152        }
    153153    }
Note: See TracChangeset for help on using the changeset viewer.