Ignore:
Timestamp:
2016-06-19T16:08:56+02:00 (8 years ago)
Author:
donvip
Message:

fix #josm12953 - Replace most uses of MapView.getActiveLayer and similar methods (patch by michael2402, modified) - gsoc-core

Location:
applications/editors/josm/plugins/surveyor
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/build.xml

    r31926 r32329  
    77    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
    88    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    9     <property name="plugin.main.version" value="8863"/>
     9    <property name="plugin.main.version" value="10279"/>
    1010    <property name="livegpsplugin.jar" value="${plugin.dist.dir}/livegps.jar"/>
    1111
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetWaypointAction.java

    r30646 r32329  
    125125    public GpxLayer getGpxLayer() {
    126126        if(liveGpsLayer == null) {
    127             Collection<Layer> layers = Main.map.mapView.getAllLayers();
     127            Collection<Layer> layers = Main.getLayerManager().getLayers();
    128128            for (Layer layer : layers) {
    129129                if(layer instanceof LiveGpsLayer) {
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/util/LayerUtil.java

    r17384 r32329  
    2424        Layer result = null;
    2525        if(Main.map != null && Main.map.mapView != null) {
    26             for(Layer layer : Main.map.mapView.getAllLayers()) {
     26            for(Layer layer : Main.getLayerManager().getLayers()) {
    2727                if(layerName.equals(layer.getName()) && layerType.isAssignableFrom(layer.getClass())) {
    2828                    result = layer;
Note: See TracChangeset for help on using the changeset viewer.