Changeset 13926 in josm for trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java
- Timestamp:
- 2018-06-13T01:33:47+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java
r13434 r13926 22 22 23 23 import org.openstreetmap.josm.actions.AutoScaleAction; 24 import org.openstreetmap.josm.data.osm.DataSet; 24 import org.openstreetmap.josm.data.osm.IPrimitive; 25 import org.openstreetmap.josm.data.osm.OsmData; 25 26 import org.openstreetmap.josm.data.osm.OsmPrimitive; 26 27 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; … … 247 248 if (!isEnabled()) 248 249 return; 249 OsmPrimitive p = getPrimitiveToZoom();250 IPrimitive p = getPrimitiveToZoom(); 250 251 if (p != null) { 251 DataSet ds = MainApplication.getLayerManager().getActiveDataSet();252 OsmData<?, ?, ?, ?> ds = MainApplication.getLayerManager().getActiveData(); 252 253 if (ds != null) { 253 254 ds.setSelected(p.getPrimitiveId()); … … 262 263 } 263 264 264 protected OsmPrimitive getPrimitiveToZoom() {265 protected IPrimitive getPrimitiveToZoom() { 265 266 if (primitiveId == null) 266 267 return null; 267 DataSet ds = MainApplication.getLayerManager().getActiveDataSet();268 OsmData<?, ?, ?, ?> ds = MainApplication.getLayerManager().getActiveData(); 268 269 if (ds == null) 269 270 return null; … … 272 273 273 274 public void updateEnabledState() { 274 setEnabled(MainApplication.getLayerManager().getActiveData Set() != null && getPrimitiveToZoom() != null);275 setEnabled(MainApplication.getLayerManager().getActiveData() != null && getPrimitiveToZoom() != null); 275 276 } 276 277 }
Note:
See TracChangeset
for help on using the changeset viewer.