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

    r10413 r10436  
    3939    public void testNoDataSet() {
    4040        while (Main.main.hasEditLayer()) {
    41             Main.main.removeLayer(Main.getLayerManager().getEditLayer());
     41            Main.getLayerManager().removeLayer(Main.getLayerManager().getEditLayer());
    4242        }
    4343        assertNull(JosmAction.getCurrentDataSet());
     
    6969        ds.addPrimitive(r);
    7070        OsmDataLayer layer = new OsmDataLayer(ds, "", null);
    71         Main.main.addLayer(layer);
     71        Main.getLayerManager().addLayer(layer);
    7272        return layer;
    7373    }
     
    8686        } finally {
    8787            // Ensure we clean the place before leaving, even if test fails.
    88             Main.main.removeLayer(layer);
     88            Main.getLayerManager().removeLayer(layer);
    8989        }
    9090    }
     
    101101        } finally {
    102102            // Ensure we clean the place before leaving, even if test fails.
    103             Main.main.removeLayer(layer);
     103            Main.getLayerManager().removeLayer(layer);
    104104        }
    105105    }
     
    130130        } finally {
    131131            // Ensure we clean the place before leaving, even if test fails.
    132             Main.main.removeLayer(layer);
     132            Main.getLayerManager().removeLayer(layer);
    133133        }
    134134    }
Note: See TracChangeset for help on using the changeset viewer.