Ignore:
Timestamp:
04.02.2012 22:41:17 (4 months ago)
Author:
stoecker
Message:

fix #7358 - custom shortcuts broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r4895 r4900  
    9595    protected final SortedMap<String, String> colornames = new TreeMap<String, String>(); 
    9696 
    97     /** Mapping for list settings. Must not conatin null values */ 
     97    /** Mapping for list settings. Must not contain null values */ 
    9898    protected final SortedMap<String, List<String>> collectionProperties = new TreeMap<String, List<String>>(); 
    9999    /** Defaults, can contain null values */ 
     
    376376    } 
    377377 
    378     synchronized public List<String> getAllPrefixKeys(final String prefix) { 
     378    synchronized public List<String> getAllPrefixCollectionKeys(final String prefix) { 
    379379        final List<String> all = new LinkedList<String>(); 
    380         for (final Entry<String,String> e : properties.entrySet()) { 
    381             if (e.getKey().startsWith(prefix)) { 
    382                 all.add(e.getKey()); 
     380        for (final String e : collectionProperties.keySet()) { 
     381            if (e.startsWith(prefix)) { 
     382                all.add(e); 
    383383            } 
    384384        } 
Note: See TracChangeset for help on using the changeset viewer.