Ignore:
Timestamp:
2011-01-28T00:49:15+01:00 (13 years ago)
Author:
framm
Message:

Add a "blacklisted" property to imagery layers; set this property from a
compiled-in list of regular expressions; disable blacklisted entries in
the Imagery menu.

File:
1 edited

Legend:

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

    r3720 r3826  
    128128        HashSet<String> existingUrls = new HashSet<String>();
    129129        for (ImageryInfo info : layerInfo.getLayers()) {
    130             existingUrls.add(info.getFullURL());
     130            existingUrls.add(info.getFullUrl());
    131131        }
    132132        for(Collection<String> c : Main.pref.getArray("wmslayers",
    133133                Collections.<Collection<String>>emptySet())) {
    134134            ImageryInfo info = new ImageryInfo(c);
    135             if (!existingUrls.contains(info.getFullURL())) {
     135            if (!existingUrls.contains(info.getFullUrl())) {
    136136                layerInfo.add(info);
    137137            }
Note: See TracChangeset for help on using the changeset viewer.