Changeset 13949 in josm
- Timestamp:
- 2018-06-18T01:35:43+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java
r13926 r13949 25 25 import org.openstreetmap.josm.data.osm.IPrimitive; 26 26 import org.openstreetmap.josm.data.osm.OsmData; 27 import org.openstreetmap.josm.data.osm.OsmPrimitive;28 27 import org.openstreetmap.josm.data.osm.PrimitiveComparator; 29 28 import org.openstreetmap.josm.gui.ExtendedDialog; … … 115 114 116 115 protected static String buildMapPaintText() { 117 final Collection< OsmPrimitive> sel = MainApplication.getLayerManager().getActiveDataSet().getAllSelected();116 final Collection<? extends IPrimitive> sel = MainApplication.getLayerManager().getActiveData().getAllSelected(); 118 117 ElemStyles elemstyles = MapPaintStyles.getStyles(); 119 118 NavigatableComponent nc = MainApplication.getMap().mapView; … … 123 122 MapCSSStyleSource.STYLE_SOURCE_LOCK.readLock().lock(); 124 123 try { 125 for ( OsmPrimitive osm : sel) {124 for (IPrimitive osm : sel) { 126 125 txtMappaint.append(tr("Styles Cache for \"{0}\":", osm.getDisplayName(DefaultNameFormatter.getInstance()))); 127 126 … … 151 150 } 152 151 if (sel.size() == 2) { 153 List< OsmPrimitive> selList = new ArrayList<>(sel);152 List<IPrimitive> selList = new ArrayList<>(sel); 154 153 StyleCache sc1 = selList.get(0).getCachedStyle(); 155 154 StyleCache sc2 = selList.get(1).getCachedStyle();
Note:
See TracChangeset
for help on using the changeset viewer.