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

    r9817 r10436  
    3232        final OsmDataLayer layer = new OsmDataLayer(new DataSet(), DownloadAlongTrackActionTest.class.getName(), null);
    3333        try {
    34             Main.main.addLayer(layer);
     34            Main.getLayerManager().addLayer(layer);
    3535            // Perform action
    3636            final GpxData gpx = GpxReaderTest.parseGpxData(TestUtils.getTestDataRoot() + file);
     
    3838        } finally {
    3939            // Ensure we clean the place before leaving, even if test fails.
    40             Main.main.removeLayer(layer);
     40            Main.getLayerManager().removeLayer(layer);
    4141        }
    4242    }
Note: See TracChangeset for help on using the changeset viewer.