Changeset 32329 in osm for applications/editors/josm/plugins/sds/src
- Timestamp:
- 2016-06-19T16:08:56+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/SdsMenu.java
r31646 r32329 55 55 56 56 void setEnabledState() { 57 boolean en = (Main.map != null) && (Main.map.mapView != null) && (Main.map.mapView.getActiveLayer() instanceof OsmDataLayer);57 boolean en = Main.getLayerManager().getActiveLayer() instanceof OsmDataLayer; 58 58 loadItem.setEnabled(en); 59 59 saveItem.setEnabled(en); -
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/SdsSaveAction.java
r30738 r32329 37 37 public boolean doSave() { 38 38 Layer layer = null; 39 if (Main. isDisplayingMapView() && (Main.map.mapView.getActiveLayer() instanceof OsmDataLayer))40 layer = Main. map.mapView.getActiveLayer();39 if (Main.getLayerManager().getActiveLayer() instanceof OsmDataLayer) 40 layer = Main.getLayerManager().getActiveLayer(); 41 41 42 42 if (layer == null)
Note:
See TracChangeset
for help on using the changeset viewer.