Changeset 35221 in osm


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
Files:
29 edited

Legend:

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

    r35209 r35221  
    44    <property name="commit.message" value="JOSM/CommandLine: fix exception after JOSM update"/>
    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/CommandLine/src/org/openstreetmap/josm/plugins/commandline/GpxFilter.java

    r35209 r35221  
    88import org.openstreetmap.josm.data.gpx.GpxData;
    99import org.openstreetmap.josm.data.gpx.GpxTrack;
     10import org.openstreetmap.josm.data.gpx.IGpxTrack;
    1011import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1112import org.openstreetmap.josm.data.gpx.WayPoint;
     
    2829        Collection<Collection<WayPoint>> currentTrack;
    2930        Collection<WayPoint> currentSegment;
    30         for (GpxTrack track : data.tracks) {
     31        for (IGpxTrack track : data.tracks) {
    3132            currentTrack = new ArrayList<>();
    3233            for (IGpxTrackSegment segment : track.getSegments()) {
  • applications/editors/josm/plugins/DirectDownload/build.xml

    r34483 r35221  
    44    <property name="commit.message" value="Commit message"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="14153"/>
     6    <property name="plugin.main.version" value="15502"/>
    77
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/DirectDownload/src/org/openstreetmap/josm/plugins/directdownload/DirectDownload.java

    r34593 r35221  
    1212import org.openstreetmap.josm.data.gpx.GpxData;
    1313import org.openstreetmap.josm.data.gpx.GpxTrack;
    14 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack;
     14import org.openstreetmap.josm.data.gpx.IGpxTrack;
    1515import org.openstreetmap.josm.gui.MainApplication;
    1616import org.openstreetmap.josm.gui.MainMenu;
     
    6262                GpxData dataNew = new GpxData();
    6363
    64                 for (GpxTrack trk : data.getTracks()) {
     64                for (IGpxTrack trk : data.getTracks()) {
    6565                    HashMap<String, Object> attrib = new HashMap<>(trk.getAttributes());
    6666                    if (!trk.getAttributes().containsKey(GpxConstants.GPX_NAME)) {
     
    7171                    }
    7272                    // replace the existing trace in the unmodifiable tracks
    73                     dataNew.addTrack(new ImmutableGpxTrack(new ArrayList<>(trk.getSegments()), attrib));
     73                    dataNew.addTrack(new GpxTrack(new ArrayList<>(trk.getSegments()), attrib));
    7474                }
    7575
  • applications/editors/josm/plugins/DirectUpload/build.xml

    r34502 r35221  
    55    <property name="commit.message" value="applied JOSM Ticket 4498 (patch by ax) - oauth support for gpx upload (I accidentally committed parts of the path in [24236])"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="14153"/>
     7    <property name="plugin.main.version" value="15502"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/DirectUpload/src/org/openstreetmap/josm/plugins/DirectUpload/UploadDataGui.java

    r35041 r35221  
    2525import org.openstreetmap.josm.data.gpx.GpxData;
    2626import org.openstreetmap.josm.data.gpx.GpxTrack;
     27import org.openstreetmap.josm.data.gpx.IGpxTrack;
    2728import org.openstreetmap.josm.gui.ExtendedDialog;
    2829import org.openstreetmap.josm.gui.MainApplication;
     
    178179      // non-breaking space in title fixes #10275
    179180      if (gpxData != null) {
    180           GpxTrack firstTrack = gpxData.tracks.isEmpty() ? null : gpxData.tracks.iterator().next();
     181          IGpxTrack firstTrack = gpxData.tracks.isEmpty() ? null : gpxData.tracks.iterator().next();
    181182          Object meta_desc = gpxData.attr.get(GpxConstants.META_DESC);
    182183          if (meta_desc != null) {
  • applications/editors/josm/plugins/ElevationProfile/build.xml

    r35212 r35221  
    44    <property name="commit.message" value="[josm_elevationprofile]"/>
    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/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationModel.java

    r35212 r35221  
    77import org.openstreetmap.josm.data.gpx.GpxData;
    88import org.openstreetmap.josm.data.gpx.GpxRoute;
    9 import org.openstreetmap.josm.data.gpx.GpxTrack;
     9import org.openstreetmap.josm.data.gpx.IGpxTrack;
    1010import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1111import org.openstreetmap.josm.data.gpx.IWithAttributes;
     
    147147
    148148    @Override
    149     public void beginTrack(GpxTrack track) {
     149    public void beginTrack(IGpxTrack track) {
    150150        createProfile(track);
    151151    }
    152152
    153153    @Override
    154     public void endTrack(GpxTrack track) {
     154    public void endTrack(IGpxTrack track) {
    155155        if (curProfile == null) throw new RuntimeException("Internal error: No elevation profile");
    156156
     
    160160
    161161    @Override
    162     public void beginTrackSegment(GpxTrack track, IGpxTrackSegment segment) {
     162    public void beginTrackSegment(IGpxTrack track, IGpxTrackSegment segment) {
    163163        // Nothing to do here for now
    164164    }
    165165
    166166    @Override
    167     public void endTrackSegment(GpxTrack track, IGpxTrackSegment segment) {
     167    public void endTrackSegment(IGpxTrack track, IGpxTrackSegment segment) {
    168168        // Nothing to do here for now
    169169    }
    170170
    171171    @Override
    172     public void visitTrackPoint(WayPoint wp, GpxTrack track, IGpxTrackSegment segment) {
     172    public void visitTrackPoint(WayPoint wp, IGpxTrack track, IGpxTrackSegment segment) {
    173173        processWayPoint(wp);
    174174    }
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/GpxIterator.java

    r35212 r35221  
    66import org.openstreetmap.josm.data.gpx.GpxData;
    77import org.openstreetmap.josm.data.gpx.GpxRoute;
    8 import org.openstreetmap.josm.data.gpx.GpxTrack;
     8import org.openstreetmap.josm.data.gpx.IGpxTrack;
    99import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1010import org.openstreetmap.josm.data.gpx.WayPoint;
     
    4747
    4848        // tracks
    49         for (GpxTrack trk : data.tracks) {
     49        for (IGpxTrack trk : data.tracks) {
    5050            visitTrack(visitor, trk);
    5151        }
     
    5858     *            The visitor which inspects all GPX entities.
    5959     */
    60     public static void visit(GpxTrack track, IGpxVisitor visitor) {
     60    public static void visit(IGpxTrack track, IGpxVisitor visitor) {
    6161        visitTrack(visitor, track);
    6262    }
     
    7474    // ---------------------- Helper methods ----------------
    7575
    76     private static void visitTrack(IGpxVisitor visitor, GpxTrack trk) {
     76    private static void visitTrack(IGpxVisitor visitor, IGpxTrack trk) {
    7777        if (trk == null) return;
    7878        if (visitor == null) return;
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/IGpxVisitor.java

    r35212 r35221  
    33
    44import org.openstreetmap.josm.data.gpx.GpxRoute;
    5 import org.openstreetmap.josm.data.gpx.GpxTrack;
     5import org.openstreetmap.josm.data.gpx.IGpxTrack;
    66import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    77import org.openstreetmap.josm.data.gpx.WayPoint;
     
    2525     * Starts a GPX track.
    2626     */
    27     void beginTrack(GpxTrack track);
     27    void beginTrack(IGpxTrack track);
    2828
    2929    /**
    3030     * Ends a GPX track.
    3131     */
    32     void endTrack(GpxTrack track);
     32    void endTrack(IGpxTrack track);
    3333
    3434    /**
     
    4646     * Starts a segment within a GPX track.
    4747     */
    48     void beginTrackSegment(GpxTrack track, IGpxTrackSegment segment);
     48    void beginTrackSegment(IGpxTrack track, IGpxTrackSegment segment);
    4949
    5050    /**
    5151     * Ends a segment within a GPX track.
    5252     */
    53     void endTrackSegment(GpxTrack track, IGpxTrackSegment segment);
     53    void endTrackSegment(IGpxTrack track, IGpxTrackSegment segment);
    5454
    5555    /**
     
    6767     * @param segment the track segment
    6868     */
    69     void visitTrackPoint(WayPoint wp, GpxTrack track, IGpxTrackSegment segment);
     69    void visitTrackPoint(WayPoint wp, IGpxTrack track, IGpxTrackSegment segment);
    7070
    7171    /**
  • applications/editors/josm/plugins/NanoLog/build.xml

    r35217 r35221  
    55    <property name="commit.message" value="NanoLog"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="15496"/>
     7    <property name="plugin.main.version" value="15502"/>
    88    <property name="plugin.author" value="Ilya Zverev"/>
    99    <property name="plugin.class" value="nanolog.NanoLogPlugin"/>
  • applications/editors/josm/plugins/NanoLog/src/nanolog/Correlator.java

    r35218 r35221  
    1212import org.openstreetmap.josm.data.coor.LatLon;
    1313import org.openstreetmap.josm.data.gpx.GpxData;
    14 import org.openstreetmap.josm.data.gpx.GpxTrack;
     14import org.openstreetmap.josm.data.gpx.IGpxTrack;
    1515import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1616import org.openstreetmap.josm.data.gpx.WayPoint;
     
    4242        long firstGPXDate = -1;
    4343        outer:
    44         for (GpxTrack trk : data.tracks) {
     44        for (IGpxTrack trk : data.tracks) {
    4545            for (IGpxTrackSegment segment : trk.getSegments()) {
    4646                for (WayPoint curWp : segment.getWayPoints()) {
     
    8484        //int ret = 0;
    8585        Collections.sort(sortedEntries);
    86         for (GpxTrack track : data.tracks) {
     86        for (IGpxTrack track : data.tracks) {
    8787            for (IGpxTrackSegment segment : track.getSegments()) {
    8888                long prevWpTime = 0;
     
    220220    public static long getGpxDate(GpxData data, LatLon pos) {
    221221        EastNorth en = ProjectionRegistry.getProjection().latlon2eastNorth(pos);
    222         for (GpxTrack track : data.tracks) {
     222        for (IGpxTrack track : data.tracks) {
    223223            for (IGpxTrackSegment segment : track.getSegments()) {
    224224                long prevWpTime = 0;
  • 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()) {
  • applications/editors/josm/plugins/gpsblam/build.xml

    r35214 r35221  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="15496"/>
     7    <property name="plugin.main.version" value="15502"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/gpsblam/src/org/openstreetmap/josm/plugins/gpsblam/GPSBlamInputData.java

    r35214 r35221  
    1010
    1111import org.openstreetmap.josm.data.coor.CachedLatLon;
    12 import org.openstreetmap.josm.data.gpx.GpxTrack;
     12import org.openstreetmap.josm.data.gpx.IGpxTrack;
    1313import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1414import org.openstreetmap.josm.data.gpx.WayPoint;
     
    3333        for (Layer l : layers) {
    3434            if (l.isVisible() && l instanceof GpxLayer) {
    35                 for (GpxTrack track : ((GpxLayer) l).data.tracks) {
     35                for (IGpxTrack track : ((GpxLayer) l).data.tracks) {
    3636                    for (IGpxTrackSegment segment: track.getSegments()) {
    3737                        for (WayPoint wayPoint : segment.getWayPoints()) {
  • applications/editors/josm/plugins/infomode/build.xml

    r35215 r35221  
    55    <property name="commit.message" value="InfoMode : for shortcurt parser"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="15496"/>
     7    <property name="plugin.main.version" value="15502"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoMode.java

    r35215 r35221  
    2626import org.openstreetmap.josm.data.Bounds;
    2727import org.openstreetmap.josm.data.coor.EastNorth;
    28 import org.openstreetmap.josm.data.gpx.GpxTrack;
     28import org.openstreetmap.josm.data.gpx.IGpxTrack;
    2929import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    3030import org.openstreetmap.josm.data.gpx.WayPoint;
     
    219219        if (l instanceof GpxLayer && pos != null) {
    220220            GpxLayer gpxL = (GpxLayer) l;
    221             Set<GpxTrack> toRemove = new HashSet<>();
    222             for (GpxTrack track : gpxL.data.tracks) {
     221            Set<IGpxTrack> toRemove = new HashSet<>();
     222            for (IGpxTrack track : gpxL.data.tracks) {
    223223                boolean f = true;
    224224                sg: for (IGpxTrackSegment seg : track.getSegments()) {
     
    241241            double minDist = 1e9, d;
    242242            WayPoint wp = null, oldWp = null, prevWp = null;
    243             GpxTrack trk = null;
     243            IGpxTrack trk = null;
    244244            double maxD = mv.getDist100Pixel()/3;
    245             for (GpxTrack track : gpxL.data.tracks) {
     245            for (IGpxTrack track : gpxL.data.tracks) {
    246246                for (IGpxTrackSegment seg : track.getSegments()) {
    247247                    oldWp = null; // next segment will have new previous point
  • applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoPanel.java

    r35215 r35221  
    2020
    2121import org.openstreetmap.josm.data.SystemOfMeasurement;
    22 import org.openstreetmap.josm.data.gpx.GpxTrack;
     22import org.openstreetmap.josm.data.gpx.IGpxTrack;
    2323import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    2424import org.openstreetmap.josm.data.gpx.WayPoint;
     
    3131class InfoPanel extends JPanel {
    3232
    33     private Collection<GpxTrack> tracks;
    34     private GpxTrack trk;
     33    private Collection<IGpxTrack> tracks;
     34    private IGpxTrack trk;
    3535
    3636    private JLabel label1 = new JLabel();
     
    7373            public void actionPerformed(ActionEvent e) {
    7474            if (tracks == null) return;
    75             Set<GpxTrack> toRemove = new HashSet<>();
     75            Set<IGpxTrack> toRemove = new HashSet<>();
    7676
    7777            double tm = -1;
     
    8484                }
    8585
    86             for (GpxTrack track : tracks) {
     86            for (IGpxTrack track : tracks) {
    8787                boolean f = true;
    8888                sg: for (IGpxTrackSegment seg : track.getSegments()) {
     
    102102    }
    103103
    104     void setData(WayPoint wp, GpxTrack trk, double vel, Collection<GpxTrack> tracks) {
     104    void setData(WayPoint wp, IGpxTrack trk, double vel, Collection<IGpxTrack> tracks) {
    105105        this.tracks = tracks;
    106106        this.trk = trk;
  • applications/editors/josm/plugins/livegps/build.xml

    r34526 r35221  
    22<project name="livegps" default="dist" basedir=".">
    33    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
    4     <property name="plugin.main.version" value="14153"/>
     4    <property name="plugin.main.version" value="15502"/>
    55       
    66    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/livegps/src/livegps/AppendableGpxTrackSegment.java

    r33045 r35221  
    55
    66import org.openstreetmap.josm.data.Bounds;
    7 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     7import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    88import org.openstreetmap.josm.data.gpx.WayPoint;
     9import org.openstreetmap.josm.data.gpx.WithAttributes;
    910import org.openstreetmap.josm.tools.CopyList;
    1011
     
    1314 *
    1415 */
    15 public class AppendableGpxTrackSegment implements GpxTrackSegment {
     16public class AppendableGpxTrackSegment extends WithAttributes implements IGpxTrackSegment {
    1617
    1718    private WayPoint[] wayPoints = new WayPoint[16];
  • applications/editors/josm/plugins/livegps/src/livegps/LiveGpsLayer.java

    r34526 r35221  
    1515import org.openstreetmap.josm.data.coor.LatLon;
    1616import org.openstreetmap.josm.data.gpx.GpxData;
    17 import org.openstreetmap.josm.data.gpx.GpxTrack;
     17import org.openstreetmap.josm.data.gpx.IGpxTrack;
    1818import org.openstreetmap.josm.data.gpx.WayPoint;
    1919import org.openstreetmap.josm.gui.MainApplication;
     
    5151        attr.put("desc", "josm live gps");
    5252
    53         GpxTrack trackBeingWritten = new SingleSegmentGpxTrack(trackSegment, attr);
     53        IGpxTrack trackBeingWritten = new SingleSegmentGpxTrack(trackSegment, attr);
    5454        data.tracks.add(trackBeingWritten);
    5555
  • applications/editors/josm/plugins/livegps/src/livegps/SingleSegmentGpxTrack.java

    r33360 r35221  
    77
    88import org.openstreetmap.josm.data.Bounds;
    9 import org.openstreetmap.josm.data.gpx.GpxTrack;
    10 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     9import org.openstreetmap.josm.data.gpx.IGpxTrack;
     10import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1111import org.openstreetmap.josm.data.gpx.WithAttributes;
    1212
    13 public class SingleSegmentGpxTrack extends WithAttributes implements GpxTrack {
     13public class SingleSegmentGpxTrack extends WithAttributes implements IGpxTrack {
    1414
    15     private final GpxTrackSegment trackSegment;
     15    private final IGpxTrackSegment trackSegment;
    1616
    17     public SingleSegmentGpxTrack(GpxTrackSegment trackSegment, Map<String, Object> attributes) {
     17    public SingleSegmentGpxTrack(IGpxTrackSegment trackSegment, Map<String, Object> attributes) {
    1818        this.attr = Collections.unmodifiableMap(attributes);
    1919        this.trackSegment = trackSegment;
     
    3131
    3232    @Override
    33     public Collection<GpxTrackSegment> getSegments() {
     33    public Collection<IGpxTrackSegment> getSegments() {
    3434        return Collections.singleton(trackSegment);
    3535    }
  • applications/editors/josm/plugins/measurement/build.xml

    r35216 r35221  
    44    <property name="commit.message" value="recompile dure to core change"/>
    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    <property name="plugin.canloadatruntime" value="true"/>
    88   
  • applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementLayer.java

    r35216 r35221  
    2929import org.openstreetmap.josm.data.Bounds;
    3030import org.openstreetmap.josm.data.coor.LatLon;
    31 import org.openstreetmap.josm.data.gpx.GpxTrack;
     31import org.openstreetmap.josm.data.gpx.IGpxTrack;
    3232import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    3333import org.openstreetmap.josm.data.gpx.WayPoint;
     
    285285                }
    286286
    287                 for (GpxTrack trk : gpx.data.tracks) {
     287                for (IGpxTrack trk : gpx.data.tracks) {
    288288                    for (IGpxTrackSegment trkseg : trk.getSegments()) {
    289289                        for(WayPoint p: trkseg.getWayPoints()){
  • applications/editors/josm/plugins/public_transport/build.xml

    r35219 r35221  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="15496"/>
     7    <property name="plugin.main.version" value="15502"/>
    88
    99    <property name="plugin.author" value="Roland M. Olbricht"/>
  • 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.