Changeset 35899 in osm for applications/editors/josm/plugins/opendata/src
- Timestamp:
- 2022-01-25T01:04:25+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/SimpleDataSetHandler.java
r34661 r35899 16 16 17 17 import org.openstreetmap.josm.data.osm.IPrimitive; 18 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 18 19 import org.openstreetmap.josm.data.osm.Tag; 19 20 import org.openstreetmap.josm.data.projection.Projection; 20 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles;21 21 import org.openstreetmap.josm.plugins.opendata.core.OdConstants; 22 22 import org.openstreetmap.josm.plugins.opendata.core.io.OverpassApi; 23 import org.openstreetmap.josm.tools.ImageResource; 24 import org.openstreetmap.josm.tools.OsmPrimitiveImageProvider; 23 25 24 26 public abstract class SimpleDataSetHandler extends AbstractDataSetHandler { … … 45 47 tag = new Tag(relevantTag); 46 48 } 47 setMenuIcon(MapPaintStyles.getNodeIcon(tag)); 49 OsmPrimitiveImageProvider.getResource(tag.getKey(), tag.getValue(), OsmPrimitiveType.NODE) 50 .map(ImageResource::getImageIcon).ifPresent(this::setMenuIcon); 48 51 } 49 52
Note:
See TracChangeset
for help on using the changeset viewer.