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

    r10263 r10436  
    5454        OsmDataLayer layer = new OsmDataLayer(ds, "", null);
    5555        try {
    56             Main.main.addLayer(layer);
     56            Main.getLayerManager().addLayer(layer);
    5757            assertTrue(ds.getSelected().isEmpty());
    5858            action.actionPerformed(null);
    5959        } finally {
    60             Main.main.removeLayer(layer);
     60            Main.getLayerManager().removeLayer(layer);
    6161        }
    6262    }
     
    7171        OsmDataLayer layer = new OsmDataLayer(ds, "", null);
    7272        try {
    73             Main.main.addLayer(layer);
     73            Main.getLayerManager().addLayer(layer);
    7474            assertEquals(1, ds.getSelected().size());
    7575            action.actionPerformed(null);
    7676        } finally {
    77             Main.main.removeLayer(layer);
     77            Main.getLayerManager().removeLayer(layer);
    7878        }
    7979    }
     
    9090        OsmDataLayer layer = new OsmDataLayer(ds, "", null);
    9191        try {
    92             Main.main.addLayer(layer);
     92            Main.getLayerManager().addLayer(layer);
    9393            assertEquals(11, ds.getSelected().size());
    9494            action.actionPerformed(null);
    9595        } finally {
    96             Main.main.removeLayer(layer);
     96            Main.getLayerManager().removeLayer(layer);
    9797        }
    9898    }
Note: See TracChangeset for help on using the changeset viewer.