Changeset 4900 in josm
- Timestamp:
- 2012-02-04T22:41:17+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r4895 r4900 95 95 protected final SortedMap<String, String> colornames = new TreeMap<String, String>(); 96 96 97 /** Mapping for list settings. Must not con atin null values */97 /** Mapping for list settings. Must not contain null values */ 98 98 protected final SortedMap<String, List<String>> collectionProperties = new TreeMap<String, List<String>>(); 99 99 /** Defaults, can contain null values */ … … 376 376 } 377 377 378 synchronized public List<String> getAllPrefix Keys(final String prefix) {378 synchronized public List<String> getAllPrefixCollectionKeys(final String prefix) { 379 379 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); 383 383 } 384 384 } -
trunk/src/org/openstreetmap/josm/tools/Shortcut.java
r4897 r4900 314 314 // (2) User defined shortcuts 315 315 LinkedList<Shortcut> shortcuts = new LinkedList<Shortcut>(); 316 for(String s : Main.pref.getAllPrefix Keys("shortcut.entry.")) {316 for(String s : Main.pref.getAllPrefixCollectionKeys("shortcut.entry.")) { 317 317 shortcuts.add(new Shortcut(s)); 318 318 }
Note:
See TracChangeset
for help on using the changeset viewer.