Changeset 35211 in osm for applications/editors/josm/plugins/editgpx/src/org
- Timestamp:
- 2019-11-02T15:29:17+01:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrack.java
r34751 r35211 12 12 13 13 import org.openstreetmap.josm.data.gpx.GpxTrack; 14 import org.openstreetmap.josm.data.gpx.GpxTrackSegment; 15 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack; 14 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 16 15 import org.openstreetmap.josm.data.gpx.WayPoint; 17 16 … … 24 23 public EditGpxTrack(GpxTrack track) { 25 24 attributes.putAll(track.getAttributes()); 26 for ( GpxTrackSegment segment: track.getSegments()) {25 for (IGpxTrackSegment segment: track.getSegments()) { 27 26 segments.add(new EditGpxTrackSegment(segment)); 28 27 } … … 70 69 } 71 70 72 return new ImmutableGpxTrack(wayPoints, attributes);71 return new GpxTrack(wayPoints, attributes); 73 72 } 74 73 -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrackSegment.java
r34751 r35211 5 5 import java.util.List; 6 6 7 import org.openstreetmap.josm.data.gpx. GpxTrackSegment;7 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 8 8 import org.openstreetmap.josm.data.gpx.WayPoint; 9 9 … … 13 13 private boolean deleted; 14 14 15 public EditGpxTrackSegment( GpxTrackSegment segment) {15 public EditGpxTrackSegment(IGpxTrackSegment segment) { 16 16 for (WayPoint wayPoint: segment.getWayPoints()) { 17 17 wayPoints.add(new EditGpxWayPoint(wayPoint));
Note:
See TracChangeset
for help on using the changeset viewer.