Changeset 13951 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2018-06-18T18:51:55+02:00 (13 months ago)
Author:
Don-vip
Message:

better implementation of AbstractOsmDataLayer

Location:
trunk/src/org/openstreetmap/josm/gui/layer
Files:
2 edited

Legend:

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

    r13926 r13951  
    1919     */
    2020    public abstract OsmData<?, ?, ?, ?> getDataSet();
     21
     22    @Override
     23    public void lock() {
     24        getDataSet().lock();
     25    }
     26
     27    @Override
     28    public void unlock() {
     29        getDataSet().unlock();
     30    }
     31
     32    @Override
     33    public boolean isLocked() {
     34        return getDataSet().isLocked();
     35    }
    2136}
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r13926 r13951  
    11781178    }
    11791179
    1180     @Override
    1181     public void lock() {
    1182         data.lock();
    1183     }
    1184 
    1185     @Override
    1186     public void unlock() {
    1187         data.unlock();
    1188     }
    1189 
    1190     @Override
    1191     public boolean isLocked() {
    1192         return data.isLocked();
    1193     }
    1194 
    11951180    /**
    11961181     * Sets the "upload in progress" flag, which will result in displaying a new icon and forbid to remove the layer.
Note: See TracChangeset for help on using the changeset viewer.