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/public_transport/src/org/openstreetmap/josm/plugins/public_transport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/public_transport/src/org/openstreetmap/josm/plugins/public_transport/actions/StopImporterAction.java

    r34718 r35221  
    2828import org.openstreetmap.josm.data.coor.LatLon;
    2929import org.openstreetmap.josm.data.gpx.GpxData;
    30 import org.openstreetmap.josm.data.gpx.GpxTrack;
     30import org.openstreetmap.josm.data.gpx.IGpxTrack;
    3131import org.openstreetmap.josm.data.gpx.WayPoint;
    3232import org.openstreetmap.josm.data.osm.DataSet;
     
    210210        if (data != null) {
    211211            Vector<TrackReference> trackRefs = new Vector<>();
    212             Iterator<GpxTrack> trackIter = data.tracks.iterator();
     212            Iterator<IGpxTrack> trackIter = data.tracks.iterator();
    213213            while (trackIter.hasNext()) {
    214                 GpxTrack track = trackIter.next();
     214                IGpxTrack track = trackIter.next();
    215215                trackRefs.add(new TrackReference(track, this));
    216216            }
  • applications/editors/josm/plugins/public_transport/src/org/openstreetmap/josm/plugins/public_transport/refs/TrackReference.java

    r35219 r35221  
    1414import org.openstreetmap.josm.data.UndoRedoHandler;
    1515import org.openstreetmap.josm.data.coor.LatLon;
    16 import org.openstreetmap.josm.data.gpx.GpxTrack;
     16import org.openstreetmap.josm.data.gpx.IGpxTrack;
    1717import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1818import org.openstreetmap.josm.data.gpx.WayPoint;
     
    2424
    2525public class TrackReference implements Comparable<TrackReference>, TableModelListener {
    26     public GpxTrack track;
     26    public IGpxTrack track;
    2727
    2828    public TrackStoplistTableModel stoplistTM;
     
    4040    public boolean inEvent = false;
    4141
    42     public TrackReference(GpxTrack track, StopImporterAction controller) {
     42    public TrackReference(IGpxTrack track, StopImporterAction controller) {
    4343        this.track = track;
    4444        this.stoplistTM = new TrackStoplistTableModel(this);
     
    7171    }
    7272
    73     public GpxTrack getGpxTrack() {
     73    public IGpxTrack getGpxTrack() {
    7474        return track;
    7575    }
Note: See TracChangeset for help on using the changeset viewer.