Ignore:
Timestamp:
2013-04-21T15:15:09+02:00 (12 years ago)
Author:
donvip
Message:

[josm_plugins] see #josm8582 - Use Main.removeLayer() everywhere

Location:
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java

    r28961 r29525  
    556556                    System.out.println("Try to grab into a new layer when "+wmsLayer.getName()+" is already opened.");
    557557                    // remove the duplicated layer
    558                     Main.map.mapView.removeLayer(wmsLayer);
     558                    Main.main.removeLayer(wmsLayer);
    559559                    throw new DuplicateLayerException();
    560560                }
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java

    r29101 r29525  
    6666        actionCompleted();
    6767        if (wmsLayer != null) {
    68             Main.map.mapView.removeLayer(wmsLayer);
     68            Main.main.removeLayer(wmsLayer);
    6969            wmsLayer = null;
    7070        }
     
    278278        if (selectedValue == 0) { // "Cancel"
    279279            // remove layer
    280             Main.map.mapView.removeLayer(wmsLayer);
     280            Main.main.removeLayer(wmsLayer);
    281281            wmsLayer = null;
    282282            Main.map.mapView.removeMouseListener(this);
Note: See TracChangeset for help on using the changeset viewer.