Changeset 5169 in josm for trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
- Timestamp:
- 2012-04-05T17:29:22+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r5164 r5169 1692 1692 } 1693 1693 1694 public boolean typeMatches(Collection<PresetType> t) { 1695 return t == null || types == null || types.containsAll(t); 1696 } 1697 1694 1698 public boolean matches(Collection<PresetType> t, Map<String, String> tags, boolean onlyShowable) { 1695 1699 if (onlyShowable && !isShowable()) { 1696 1700 return false; 1697 } else if ( t != null && types != null && !types.containsAll(t)) {1701 } else if (!typeMatches(t)) { 1698 1702 return false; 1699 1703 }
Note:
See TracChangeset
for help on using the changeset viewer.