Ignore:
Timestamp:
2016-06-16T12:37:18+02:00 (8 years ago)
Author:
Don-vip
Message:

gsoc-core - remove more deprecation warnings

File:
1 edited

Legend:

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

    r10378 r10395  
    304304    }
    305305
     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
    306312    protected DataSet getCurrentDataSet() {
    307313        return Main.main.getCurrentDataSet();
     
    794800    private Map<Double, List<Node>> getNearestNodesImpl(Point p, Predicate<OsmPrimitive> predicate) {
    795801        Map<Double, List<Node>> nearestMap = new TreeMap<>();
    796         DataSet ds = getCurrentDataSet();
     802        DataSet ds = Main.getLayerManager().getEditDataSet();
    797803
    798804        if (ds != null) {
     
    10031009    private Map<Double, List<WaySegment>> getNearestWaySegmentsImpl(Point p, Predicate<OsmPrimitive> predicate) {
    10041010        Map<Double, List<WaySegment>> nearestMap = new TreeMap<>();
    1005         DataSet ds = getCurrentDataSet();
     1011        DataSet ds = Main.getLayerManager().getEditDataSet();
    10061012
    10071013        if (ds != null) {
     
    13641370    public final OsmPrimitive getNearestNodeOrWay(Point p, Predicate<OsmPrimitive> predicate, boolean useSelected) {
    13651371        Collection<OsmPrimitive> sel;
    1366         DataSet ds = getCurrentDataSet();
     1372        DataSet ds = Main.getLayerManager().getEditDataSet();
    13671373        if (useSelected && ds != null) {
    13681374            sel = ds.getSelected();
Note: See TracChangeset for help on using the changeset viewer.