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

remove calls to deprecated methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.