Changeset 10395 in josm for trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
- Timestamp:
- 2016-06-16T12:37:18+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r10378 r10395 304 304 } 305 305 306 /** 307 * Returns current data set. To be removed: end of 2016. 308 * @return current data set 309 * @deprecated Use {@link Main#getLayerManager()}.getEditDataSet() instead. 310 */ 311 @Deprecated 306 312 protected DataSet getCurrentDataSet() { 307 313 return Main.main.getCurrentDataSet(); … … 794 800 private Map<Double, List<Node>> getNearestNodesImpl(Point p, Predicate<OsmPrimitive> predicate) { 795 801 Map<Double, List<Node>> nearestMap = new TreeMap<>(); 796 DataSet ds = getCurrentDataSet();802 DataSet ds = Main.getLayerManager().getEditDataSet(); 797 803 798 804 if (ds != null) { … … 1003 1009 private Map<Double, List<WaySegment>> getNearestWaySegmentsImpl(Point p, Predicate<OsmPrimitive> predicate) { 1004 1010 Map<Double, List<WaySegment>> nearestMap = new TreeMap<>(); 1005 DataSet ds = getCurrentDataSet();1011 DataSet ds = Main.getLayerManager().getEditDataSet(); 1006 1012 1007 1013 if (ds != null) { … … 1364 1370 public final OsmPrimitive getNearestNodeOrWay(Point p, Predicate<OsmPrimitive> predicate, boolean useSelected) { 1365 1371 Collection<OsmPrimitive> sel; 1366 DataSet ds = getCurrentDataSet();1372 DataSet ds = Main.getLayerManager().getEditDataSet(); 1367 1373 if (useSelected && ds != null) { 1368 1374 sel = ds.getSelected();
Note:
See TracChangeset
for help on using the changeset viewer.