Changeset 33581 in osm for applications/editors


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

update plugin, messed up for this one

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

Legend:

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

    r33557 r33581  
    55    <property name="commit.message" value="Changed constructor signature, updated build.xml"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="12671"/>
     7    <property name="plugin.main.version" value="12672"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • 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.