Ignore:
Timestamp:
2016-06-28T23:22:36+02:00 (10 years ago)
Author:
donvip
Message:

remove calls to deprecated methods

File:
1 edited

Legend:

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

    r32205 r32425  
    4343                        // set raster image commune bounding box based on current view (before adjustment)
    4444                        JOptionPane.showMessageDialog(Main.parent,tr("This commune is not vectorized.\nPlease use the other menu entry to georeference a \"Plan image\""));
    45                         Main.main.removeLayer(wmsLayer);
     45                        Main.getLayerManager().removeLayer(wmsLayer);
    4646                        wmsLayer = null;
    4747                        return;
     
    5656            else if(wmsLayer.getImages().size()==0)
    5757              // failed to contact WMS of find this commune. Remove layer if empty.
    58               Main.main.removeLayer(wmsLayer);
     58              Main.getLayerManager().removeLayer(wmsLayer);
    5959        } catch (DuplicateLayerException e) {
    6060            // we tried to grab onto a duplicated layer (removed)
Note: See TracChangeset for help on using the changeset viewer.