Changeset 35211 in osm for applications


Ignore:
Timestamp:
2019-11-02T15:29:17+01:00 (5 years ago)
Author:
donvip
Message:

update to JOSM 15496

Location:
applications/editors/josm/plugins/editgpx
Files:
3 edited

Legend:

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

    r34751 r35211  
    44    <property name="commit.message" value="Changed constructor signature of plugin main class"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="14456"/>
     6    <property name="plugin.main.version" value="15496"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrack.java

    r34751 r35211  
    1212
    1313import org.openstreetmap.josm.data.gpx.GpxTrack;
    14 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
    15 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack;
     14import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1615import org.openstreetmap.josm.data.gpx.WayPoint;
    1716
     
    2423    public EditGpxTrack(GpxTrack track) {
    2524        attributes.putAll(track.getAttributes());
    26         for (GpxTrackSegment segment: track.getSegments()) {
     25        for (IGpxTrackSegment segment: track.getSegments()) {
    2726            segments.add(new EditGpxTrackSegment(segment));
    2827        }
     
    7069        }
    7170
    72         return new ImmutableGpxTrack(wayPoints, attributes);
     71        return new GpxTrack(wayPoints, attributes);
    7372    }
    7473
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrackSegment.java

    r34751 r35211  
    55import java.util.List;
    66
    7 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     7import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    88import org.openstreetmap.josm.data.gpx.WayPoint;
    99
     
    1313    private boolean deleted;
    1414
    15     public EditGpxTrackSegment(GpxTrackSegment segment) {
     15    public EditGpxTrackSegment(IGpxTrackSegment segment) {
    1616        for (WayPoint wayPoint: segment.getWayPoints()) {
    1717            wayPoints.add(new EditGpxWayPoint(wayPoint));
Note: See TracChangeset for help on using the changeset viewer.