Changeset 8863 in josm for trunk/scripts
- Timestamp:
- 2015-10-12T22:58:25+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/taginfoextract.groovy
r8717 r8863 37 37 import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser 38 38 import org.openstreetmap.josm.gui.preferences.map.TaggingPresetPreference 39 import org.openstreetmap.josm.gui.tagging.TaggingPreset 40 import org.openstreetmap.josm.gui.tagging.TaggingPresetItems 41 import org.openstreetmap.josm.gui.tagging.TaggingPresetReader 42 import org.openstreetmap.josm.gui.tagging.TaggingPresetType 39 import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset 40 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetReader 41 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetType 42 import org.openstreetmap.josm.gui.tagging.presets.items.KeyedItem 43 import org.openstreetmap.josm.gui.tagging.presets.items.KeyedItem.MatchType 43 44 import org.openstreetmap.josm.io.CachedFile 44 45 import org.openstreetmap.josm.tools.Utils … … 252 253 def tags = [] 253 254 for (TaggingPreset preset : presets) { 254 for ( TaggingPresetItems.KeyedItem item : Utils.filteredCollection(preset.data,TaggingPresetItems.KeyedItem.class)) {255 for (KeyedItem item : Utils.filteredCollection(preset.data, KeyedItem.class)) { 255 256 def values 256 switch ( TaggingPresetItems.MatchType.ofString(item.match)) {257 case TaggingPresetItems.MatchType.KEY_REQUIRED: values = item.getValues(); break;258 case TaggingPresetItems.MatchType.KEY_VALUE_REQUIRED: values = item.getValues(); break;257 switch (MatchType.ofString(item.match)) { 258 case MatchType.KEY_REQUIRED: values = item.getValues(); break; 259 case MatchType.KEY_VALUE_REQUIRED: values = item.getValues(); break; 259 260 default: values = []; 260 261 } … … 463 464 } 464 465 } 465 466 466 } 467
Note:
See TracChangeset
for help on using the changeset viewer.