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/actions/mapmode/PlayHeadDragModeTest.java

    r9944 r10436  
    3333        OsmDataLayer layer = new OsmDataLayer(new DataSet(), "", null);
    3434        try {
    35             Main.main.addLayer(layer);
     35            Main.getLayerManager().addLayer(layer);
    3636            PlayHeadDragMode mapMode = new PlayHeadDragMode(PlayHeadMarker.create());
    3737            MapMode oldMapMode = Main.map.mapMode;
     
    4040            assertTrue(Main.map.selectMapMode(oldMapMode));
    4141        } finally {
    42             Main.main.removeLayer(layer);
     42            Main.getLayerManager().removeLayer(layer);
    4343        }
    4444    }
Note: See TracChangeset for help on using the changeset viewer.