Ignore:
Timestamp:
2017-08-28T11:56:11+02:00 (7 years ago)
Author:
donvip
Message:

update plugin, messed up for this one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/dataimport/src/org/openstreetmap/josm/plugins/dataimport/io/Tcx.java

    r33557 r33581  
    2222import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack;
    2323import org.openstreetmap.josm.data.gpx.WayPoint;
     24import org.openstreetmap.josm.gui.MainApplication;
    2425import org.openstreetmap.josm.gui.io.importexport.FileImporter;
    2526import org.openstreetmap.josm.gui.layer.GpxLayer;
     
    7475        gpxData.storageFile = tcxFile;
    7576        GpxLayer gpxLayer = new GpxLayer(gpxData, tcxFile.getName());
    76         Main.getLayerManager().addLayer(gpxLayer);
     77        MainApplication.getLayerManager().addLayer(gpxLayer);
    7778        if (Main.pref.getBoolean("marker.makeautomarkers", true)) {
    7879            MarkerLayer ml = new MarkerLayer(gpxData, tr("Markers from {0}", tcxFile.getName()), tcxFile, gpxLayer);
    7980            if (ml.data.size() > 0) {
    80                 Main.getLayerManager().addLayer(ml);
     81                MainApplication.getLayerManager().addLayer(ml);
    8182            }
    8283        }
Note: See TracChangeset for help on using the changeset viewer.