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/test/unit/org/openstreetmap/josm/gui/layer/OsmDataLayerTest.java

    r12159 r12630  
    2222import org.openstreetmap.josm.data.osm.Relation;
    2323import org.openstreetmap.josm.data.osm.Way;
     24import org.openstreetmap.josm.gui.MainApplication;
    2425
    2526/**
     
    136137            Main.getLayerManager().addLayer(layer);
    137138            assertTrue(layer.getMenuEntries().length > 0);
    138             layer.paint(TestUtils.newGraphics(), Main.map.mapView, new Bounds(LatLon.ZERO));
     139            layer.paint(TestUtils.newGraphics(), MainApplication.getMap().mapView, new Bounds(LatLon.ZERO));
    139140        } finally {
    140141            Main.getLayerManager().removeLayer(layer);
Note: See TracChangeset for help on using the changeset viewer.