Changeset 35932 in osm for applications/editors/josm/plugins
- Timestamp:
- 2022-03-22T18:47:22+01:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/dataimport
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/dataimport/build.xml
r34748 r35932 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="1 4456"/>7 <property name="plugin.main.version" value="15496"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/dataimport/src/org/openstreetmap/josm/plugins/dataimport/io/TangoGPS.java
r34749 r35932 20 20 import org.openstreetmap.josm.data.coor.LatLon; 21 21 import org.openstreetmap.josm.data.gpx.GpxData; 22 import org.openstreetmap.josm.data.gpx. ImmutableGpxTrack;22 import org.openstreetmap.josm.data.gpx.GpxTrack; 23 23 import org.openstreetmap.josm.data.gpx.WayPoint; 24 24 import org.openstreetmap.josm.gui.MainApplication; … … 57 57 try ( 58 58 InputStream source = new FileInputStream(file); 59 BufferedReader rd = new BufferedReader(new InputStreamReader(source, StandardCharsets.UTF_8)); 60 ) { 59 BufferedReader rd = new BufferedReader(new InputStreamReader(source, StandardCharsets.UTF_8))) { 61 60 String line; 62 61 while ((line = rd.readLine()) != null) { … … 79 78 if (imported > 0) { 80 79 GpxData data = new GpxData(); 81 data.tracks.add(new ImmutableGpxTrack(Collections.singleton(currentTrackSeg), Collections.<String, Object>emptyMap()));80 data.tracks.add(new GpxTrack(Collections.singleton(currentTrackSeg), Collections.emptyMap())); 82 81 data.recalculateBounds(); 83 82 data.storageFile = file; -
applications/editors/josm/plugins/dataimport/src/org/openstreetmap/josm/plugins/dataimport/io/Tcx.java
r35012 r35932 18 18 import org.openstreetmap.josm.data.coor.LatLon; 19 19 import org.openstreetmap.josm.data.gpx.GpxData; 20 import org.openstreetmap.josm.data.gpx. ImmutableGpxTrack;20 import org.openstreetmap.josm.data.gpx.GpxTrack; 21 21 import org.openstreetmap.josm.data.gpx.WayPoint; 22 22 import org.openstreetmap.josm.gui.MainApplication; … … 160 160 } 161 161 } 162 gpxData.tracks.add(new ImmutableGpxTrack(currentTrack, Collections.<String, Object>emptyMap()));162 gpxData.tracks.add(new GpxTrack(currentTrack, Collections.emptyMap())); 163 163 } 164 164 } … … 187 187 } 188 188 } 189 gpxData.tracks.add(new ImmutableGpxTrack(currentTrack, Collections.<String, Object>emptyMap()));189 gpxData.tracks.add(new GpxTrack(currentTrack, Collections.emptyMap())); 190 190 } 191 191 }
Note:
See TracChangeset
for help on using the changeset viewer.