Ignore:
Timestamp:
2016-06-20T02:47:43+02:00 (8 years ago)
Author:
Don-vip
Message:

see #13001 - replace calls to Main.main.[add|remove]Layer by Main.getLayerManager().[add|remove]Layer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/DownloadWmsAlongTrackActionTest.java

    r10222 r10436  
    4747        TMSLayer layer = new TMSLayer(new ImageryInfo("OSM TMS", "https://a.tile.openstreetmap.org/{zoom}/{x}/{y}.png", "tms", null, null));
    4848        try {
    49             Main.main.addLayer(layer);
     49            Main.getLayerManager().addLayer(layer);
    5050            TMSLayer.getCache().clear();
    5151            assertTrue(TMSLayer.getCache().getMatching(".*").isEmpty());
     
    5858        } finally {
    5959            // Ensure we clean the place before leaving, even if test fails.
    60             Main.main.removeLayer(layer);
     60            Main.getLayerManager().removeLayer(layer);
    6161        }
    6262    }
Note: See TracChangeset for help on using the changeset viewer.