Changeset 35211 in osm for applications
- Timestamp:
- 2019-11-02T15:29:17+01:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/editgpx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/build.xml
r34751 r35211 4 4 <property name="commit.message" value="Changed constructor signature of plugin main class"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 4456"/>6 <property name="plugin.main.version" value="15496"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
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.