Ignore:
Timestamp:
2019-11-03T22:22:25+01:00 (5 years ago)
Author:
donvip
Message:

see #josm16796 - update to JOSM 15502 - use IGpxTrack in GpxData (patch by Bjoeni)

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

Legend:

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

    r35211 r35221  
    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="15496"/>
     6    <property name="plugin.main.version" value="15502"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxData.java

    r34737 r35221  
    88import org.openstreetmap.josm.data.gpx.GpxRoute;
    99import org.openstreetmap.josm.data.gpx.GpxTrack;
     10import org.openstreetmap.josm.data.gpx.IGpxTrack;
    1011import org.openstreetmap.josm.data.gpx.WayPoint;
    1112
     
    1819
    1920    public void load(GpxData data) {
    20         for (GpxTrack track: data.tracks) {
     21        for (IGpxTrack track: data.tracks) {
    2122            tracks.add(new EditGpxTrack(track));
    2223        }
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrack.java

    r35211 r35221  
    1212
    1313import org.openstreetmap.josm.data.gpx.GpxTrack;
     14import org.openstreetmap.josm.data.gpx.IGpxTrack;
    1415import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1516import org.openstreetmap.josm.data.gpx.WayPoint;
     
    2122    private boolean isDeleted;
    2223
    23     public EditGpxTrack(GpxTrack track) {
     24    public EditGpxTrack(IGpxTrack track) {
    2425        attributes.putAll(track.getAttributes());
    2526        for (IGpxTrackSegment segment: track.getSegments()) {
Note: See TracChangeset for help on using the changeset viewer.