Changeset 15985 in josm for trunk/scripts
- Timestamp:
- 2020-03-01T23:36:00+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/TagInfoExtract.java
r15984 r15985 58 58 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSRule; 59 59 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource; 60 import org.openstreetmap.josm.gui.mappaint.mapcss.Selector;61 60 import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser; 62 61 import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.ParseException; … … 343 342 private List<TagInfoTag> convertStyleSheet() { 344 343 return styleSource.rules.stream() 345 .map(rule -> rule.selector) 346 .filter(Selector.GeneralSelector.class::isInstance) 347 .map(Selector.GeneralSelector.class::cast) 348 .map(Selector.AbstractSelector::getConditions) 349 .flatMap(Collection::stream) 344 .flatMap(rule -> rule.selector.getConditions().stream()) 350 345 .filter(ConditionFactory.SimpleKeyValueCondition.class::isInstance) 351 346 .map(ConditionFactory.SimpleKeyValueCondition.class::cast)
Note:
See TracChangeset
for help on using the changeset viewer.