Ignore:
Timestamp:
2017-08-24T22:53:50+02:00 (4 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.getLayerManager(). Replacement: gui.MainApplication.getLayerManager()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java

    r12625 r12636  
    2626import org.openstreetmap.josm.data.gpx.GpxData;
    2727import org.openstreetmap.josm.data.osm.DataSet;
     28import org.openstreetmap.josm.gui.MainApplication;
    2829import org.openstreetmap.josm.gui.layer.GpxLayer;
    2930import org.openstreetmap.josm.gui.layer.Layer;
     
    9899        for (int i = 0; i < 2; i++) {
    99100            OsmDataLayer layer = new OsmDataLayer(new DataSet(), "Layer "+i, null);
    100             testPlugin(Main.getLayerManager()::addLayer, layer, layerExceptions, loadedPlugins);
    101             testPlugin(Main.getLayerManager()::removeLayer, layer, layerExceptions, loadedPlugins);
     101            testPlugin(MainApplication.getLayerManager()::addLayer, layer, layerExceptions, loadedPlugins);
     102            testPlugin(MainApplication.getLayerManager()::removeLayer, layer, layerExceptions, loadedPlugins);
    102103        }
    103104        for (int i = 0; i < 2; i++) {
    104105            GpxLayer layer = new GpxLayer(new GpxData());
    105             testPlugin(Main.getLayerManager()::addLayer, layer, layerExceptions, loadedPlugins);
    106             testPlugin(Main.getLayerManager()::removeLayer, layer, layerExceptions, loadedPlugins);
     106            testPlugin(MainApplication.getLayerManager()::addLayer, layer, layerExceptions, loadedPlugins);
     107            testPlugin(MainApplication.getLayerManager()::removeLayer, layer, layerExceptions, loadedPlugins);
    107108        }
    108109
Note: See TracChangeset for help on using the changeset viewer.