Changeset 33581 in osm for applications
- Timestamp:
- 2017-08-28T11:56:11+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/dataimport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/dataimport/build.xml
r33557 r33581 5 5 <property name="commit.message" value="Changed constructor signature, updated build.xml"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1267 1"/>7 <property name="plugin.main.version" value="12672"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/dataimport/src/org/openstreetmap/josm/plugins/dataimport/io/Tcx.java
r33557 r33581 22 22 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack; 23 23 import org.openstreetmap.josm.data.gpx.WayPoint; 24 import org.openstreetmap.josm.gui.MainApplication; 24 25 import org.openstreetmap.josm.gui.io.importexport.FileImporter; 25 26 import org.openstreetmap.josm.gui.layer.GpxLayer; … … 74 75 gpxData.storageFile = tcxFile; 75 76 GpxLayer gpxLayer = new GpxLayer(gpxData, tcxFile.getName()); 76 Main.getLayerManager().addLayer(gpxLayer); 77 MainApplication.getLayerManager().addLayer(gpxLayer); 77 78 if (Main.pref.getBoolean("marker.makeautomarkers", true)) { 78 79 MarkerLayer ml = new MarkerLayer(gpxData, tr("Markers from {0}", tcxFile.getName()), tcxFile, gpxLayer); 79 80 if (ml.data.size() > 0) { 80 Main.getLayerManager().addLayer(ml); 81 MainApplication.getLayerManager().addLayer(ml); 81 82 } 82 83 }
Note:
See TracChangeset
for help on using the changeset viewer.