Ignore:
Timestamp:
2017-08-24T00:15:51+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.map and Main.isDisplayingMapView(). Replacements: gui.MainApplication.getMap() / gui.MainApplication.isDisplayingMapView()

File:
1 edited

Legend:

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

    r11905 r12630  
    1212import java.util.function.Consumer;
    1313
    14 import org.openstreetmap.josm.Main;
     14import org.openstreetmap.josm.gui.MainApplication;
    1515import org.openstreetmap.josm.gui.util.GuiHelper;
    1616import org.openstreetmap.josm.tools.JosmRuntimeException;
     
    232232        insertLayerAt(layer, position);
    233233        fireLayerAdded(layer, initialZoom);
    234         if (Main.map != null) {
     234        if (MainApplication.getMap() != null) {
    235235            layer.hookUpMapView(); // needs to be after fireLayerAdded
    236236        }
Note: See TracChangeset for help on using the changeset viewer.