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/TMSLayerTest.java

    r9680 r10436  
    5050    private static void test(ImageryType expected, TMSLayer layer) {
    5151        try {
    52             Main.main.addLayer(layer);
     52            Main.getLayerManager().addLayer(layer);
    5353            assertEquals(expected, layer.getInfo().getImageryType());
    5454        } finally {
    5555            // Ensure we clean the place before leaving, even if test fails.
    56             Main.main.removeLayer(layer);
     56            Main.getLayerManager().removeLayer(layer);
    5757        }
    5858    }
Note: See TracChangeset for help on using the changeset viewer.