Changeset 13949 in josm for trunk


Ignore:
Timestamp:
2018-06-18T01:35:43+02:00 (14 months ago)
Author:
Don-vip
Message:

use IPrimitive in InspectPrimitiveDialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java

    r13926 r13949  
    2525import org.openstreetmap.josm.data.osm.IPrimitive;
    2626import org.openstreetmap.josm.data.osm.OsmData;
    27 import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2827import org.openstreetmap.josm.data.osm.PrimitiveComparator;
    2928import org.openstreetmap.josm.gui.ExtendedDialog;
     
    115114
    116115    protected static String buildMapPaintText() {
    117         final Collection<OsmPrimitive> sel = MainApplication.getLayerManager().getActiveDataSet().getAllSelected();
     116        final Collection<? extends IPrimitive> sel = MainApplication.getLayerManager().getActiveData().getAllSelected();
    118117        ElemStyles elemstyles = MapPaintStyles.getStyles();
    119118        NavigatableComponent nc = MainApplication.getMap().mapView;
     
    123122        MapCSSStyleSource.STYLE_SOURCE_LOCK.readLock().lock();
    124123        try {
    125             for (OsmPrimitive osm : sel) {
     124            for (IPrimitive osm : sel) {
    126125                txtMappaint.append(tr("Styles Cache for \"{0}\":", osm.getDisplayName(DefaultNameFormatter.getInstance())));
    127126
     
    151150        }
    152151        if (sel.size() == 2) {
    153             List<OsmPrimitive> selList = new ArrayList<>(sel);
     152            List<IPrimitive> selList = new ArrayList<>(sel);
    154153            StyleCache sc1 = selList.get(0).getCachedStyle();
    155154            StyleCache sc2 = selList.get(1).getCachedStyle();
Note: See TracChangeset for help on using the changeset viewer.