- Timestamp:
- 2012-04-04T23:21:14+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PresetListPanel.java
r5155 r5163 87 87 88 88 for (TaggingPreset t : TaggingPresetPreference.taggingPresets) { 89 if (!t.matches(types, tags )) {89 if (!t.matches(types, tags, true)) { 90 90 continue; 91 91 } -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r5160 r5163 1680 1680 } 1681 1681 1682 public boolean matches(Collection<PresetType> t, Map<String, String> tags ) {1683 if ( !isShowable()) {1682 public boolean matches(Collection<PresetType> t, Map<String, String> tags, boolean onlyShowable) { 1683 if (onlyShowable && !isShowable()) { 1684 1684 return false; 1685 1685 } else if (t != null && types != null && !types.containsAll(t)) { -
trunk/src/org/openstreetmap/josm/tools/TaggingPresetNameTemplateList.java
r5155 r5163 39 39 40 40 for (TaggingPreset t : presetsWithPattern) { 41 if (t.matches(EnumSet.of(PresetType.forPrimitive(primitive)), primitive.getKeys() )) {41 if (t.matches(EnumSet.of(PresetType.forPrimitive(primitive)), primitive.getKeys(), false)) { 42 42 return t; 43 43 }
Note:
See TracChangeset
for help on using the changeset viewer.