Ignore:
Timestamp:
2016-06-30T19:57:15+02:00 (8 years ago)
Author:
donvip
Message:

remove calls to deprecated methods

Location:
applications/editors/josm/plugins/openvisible
Files:
2 edited

Legend:

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

    r32306 r32463  
    55    <property name="commit.message" value="Changed the constructor signature of the plugin main class; updated build.xml"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="7001"/>
     7    <property name="plugin.main.version" value="10279"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java

    r29222 r32463  
    109109            DataSet dataSet = OsmReader.parseDataSet(new FileInputStream(file), NullProgressMonitor.INSTANCE);
    110110            OsmDataLayer layer = new OsmDataLayer(dataSet, fn, file);
    111             Main.main.addLayer(layer);
     111            Main.getLayerManager().addLayer(layer);
    112112        }
    113113        else
     
    131131            r.getGpxData().storageFile = file;
    132132            GpxLayer gpxLayer = new GpxLayer(r.getGpxData(), fn);
    133             Main.main.addLayer(gpxLayer);
    134             Main.main.addLayer(new MarkerLayer(r.getGpxData(), tr("Markers from {0}", fn), file, gpxLayer));
     133            Main.getLayerManager().addLayer(gpxLayer);
     134            Main.getLayerManager().addLayer(new MarkerLayer(r.getGpxData(), tr("Markers from {0}", fn), file, gpxLayer));
    135135
    136136        } else {
Note: See TracChangeset for help on using the changeset viewer.