Ignore:
Timestamp:
2016-06-19T16:08:56+02:00 (9 years ago)
Author:
donvip
Message:

fix #josm12953 - Replace most uses of MapView.getActiveLayer and similar methods (patch by michael2402, modified) - gsoc-core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/downloadtask/DownloadXmlBoundsTask.java

    r30735 r32329  
    7373            int count = 0;
    7474            if (!Main.isDisplayingMapView()) return 0;
    75             for (Layer layer : Main.map.mapView.getAllLayers()) {
     75            for (Layer layer : Main.getLayerManager().getLayers()) {
    7676                if (layer instanceof XmlBoundsLayer) {
    7777                    count++;
     
    8484        protected OsmDataLayer getFirstDataLayer() {
    8585            if (!Main.isDisplayingMapView()) return null;
    86             for (Layer layer : Main.map.mapView.getAllLayersAsList()) {
     86            for (Layer layer : Main.getLayerManager().getLayers()) {
    8787                if (layer instanceof XmlBoundsLayer)
    8888                    return (XmlBoundsLayer) layer;
Note: See TracChangeset for help on using the changeset viewer.