Changeset 35221 in osm
- Timestamp:
- 2019-11-03T22:22:25+01:00 (5 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/build.xml
r35209 r35221 4 4 <property name="commit.message" value="JOSM/CommandLine: fix exception after JOSM update"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="15 496"/>6 <property name="plugin.main.version" value="15502"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/GpxFilter.java
r35209 r35221 8 8 import org.openstreetmap.josm.data.gpx.GpxData; 9 9 import org.openstreetmap.josm.data.gpx.GpxTrack; 10 import org.openstreetmap.josm.data.gpx.IGpxTrack; 10 11 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 11 12 import org.openstreetmap.josm.data.gpx.WayPoint; … … 28 29 Collection<Collection<WayPoint>> currentTrack; 29 30 Collection<WayPoint> currentSegment; 30 for ( GpxTrack track : data.tracks) {31 for (IGpxTrack track : data.tracks) { 31 32 currentTrack = new ArrayList<>(); 32 33 for (IGpxTrackSegment segment : track.getSegments()) { -
applications/editors/josm/plugins/DirectDownload/build.xml
r34483 r35221 4 4 <property name="commit.message" value="Commit message"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 4153"/>6 <property name="plugin.main.version" value="15502"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/DirectDownload/src/org/openstreetmap/josm/plugins/directdownload/DirectDownload.java
r34593 r35221 12 12 import org.openstreetmap.josm.data.gpx.GpxData; 13 13 import org.openstreetmap.josm.data.gpx.GpxTrack; 14 import org.openstreetmap.josm.data.gpx.I mmutableGpxTrack;14 import org.openstreetmap.josm.data.gpx.IGpxTrack; 15 15 import org.openstreetmap.josm.gui.MainApplication; 16 16 import org.openstreetmap.josm.gui.MainMenu; … … 62 62 GpxData dataNew = new GpxData(); 63 63 64 for ( GpxTrack trk : data.getTracks()) {64 for (IGpxTrack trk : data.getTracks()) { 65 65 HashMap<String, Object> attrib = new HashMap<>(trk.getAttributes()); 66 66 if (!trk.getAttributes().containsKey(GpxConstants.GPX_NAME)) { … … 71 71 } 72 72 // 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)); 74 74 } 75 75 -
applications/editors/josm/plugins/DirectUpload/build.xml
r34502 r35221 5 5 <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])"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 4153"/>7 <property name="plugin.main.version" value="15502"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/DirectUpload/src/org/openstreetmap/josm/plugins/DirectUpload/UploadDataGui.java
r35041 r35221 25 25 import org.openstreetmap.josm.data.gpx.GpxData; 26 26 import org.openstreetmap.josm.data.gpx.GpxTrack; 27 import org.openstreetmap.josm.data.gpx.IGpxTrack; 27 28 import org.openstreetmap.josm.gui.ExtendedDialog; 28 29 import org.openstreetmap.josm.gui.MainApplication; … … 178 179 // non-breaking space in title fixes #10275 179 180 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(); 181 182 Object meta_desc = gpxData.attr.get(GpxConstants.META_DESC); 182 183 if (meta_desc != null) { -
applications/editors/josm/plugins/ElevationProfile/build.xml
r35212 r35221 4 4 <property name="commit.message" value="[josm_elevationprofile]"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="15 496"/>6 <property name="plugin.main.version" value="15502"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationModel.java
r35212 r35221 7 7 import org.openstreetmap.josm.data.gpx.GpxData; 8 8 import org.openstreetmap.josm.data.gpx.GpxRoute; 9 import org.openstreetmap.josm.data.gpx. GpxTrack;9 import org.openstreetmap.josm.data.gpx.IGpxTrack; 10 10 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 11 11 import org.openstreetmap.josm.data.gpx.IWithAttributes; … … 147 147 148 148 @Override 149 public void beginTrack( GpxTrack track) {149 public void beginTrack(IGpxTrack track) { 150 150 createProfile(track); 151 151 } 152 152 153 153 @Override 154 public void endTrack( GpxTrack track) {154 public void endTrack(IGpxTrack track) { 155 155 if (curProfile == null) throw new RuntimeException("Internal error: No elevation profile"); 156 156 … … 160 160 161 161 @Override 162 public void beginTrackSegment( GpxTrack track, IGpxTrackSegment segment) {162 public void beginTrackSegment(IGpxTrack track, IGpxTrackSegment segment) { 163 163 // Nothing to do here for now 164 164 } 165 165 166 166 @Override 167 public void endTrackSegment( GpxTrack track, IGpxTrackSegment segment) {167 public void endTrackSegment(IGpxTrack track, IGpxTrackSegment segment) { 168 168 // Nothing to do here for now 169 169 } 170 170 171 171 @Override 172 public void visitTrackPoint(WayPoint wp, GpxTrack track, IGpxTrackSegment segment) {172 public void visitTrackPoint(WayPoint wp, IGpxTrack track, IGpxTrackSegment segment) { 173 173 processWayPoint(wp); 174 174 } -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/GpxIterator.java
r35212 r35221 6 6 import org.openstreetmap.josm.data.gpx.GpxData; 7 7 import org.openstreetmap.josm.data.gpx.GpxRoute; 8 import org.openstreetmap.josm.data.gpx. GpxTrack;8 import org.openstreetmap.josm.data.gpx.IGpxTrack; 9 9 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 10 10 import org.openstreetmap.josm.data.gpx.WayPoint; … … 47 47 48 48 // tracks 49 for ( GpxTrack trk : data.tracks) {49 for (IGpxTrack trk : data.tracks) { 50 50 visitTrack(visitor, trk); 51 51 } … … 58 58 * The visitor which inspects all GPX entities. 59 59 */ 60 public static void visit( GpxTrack track, IGpxVisitor visitor) {60 public static void visit(IGpxTrack track, IGpxVisitor visitor) { 61 61 visitTrack(visitor, track); 62 62 } … … 74 74 // ---------------------- Helper methods ---------------- 75 75 76 private static void visitTrack(IGpxVisitor visitor, GpxTrack trk) {76 private static void visitTrack(IGpxVisitor visitor, IGpxTrack trk) { 77 77 if (trk == null) return; 78 78 if (visitor == null) return; -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/IGpxVisitor.java
r35212 r35221 3 3 4 4 import org.openstreetmap.josm.data.gpx.GpxRoute; 5 import org.openstreetmap.josm.data.gpx. GpxTrack;5 import org.openstreetmap.josm.data.gpx.IGpxTrack; 6 6 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 7 7 import org.openstreetmap.josm.data.gpx.WayPoint; … … 25 25 * Starts a GPX track. 26 26 */ 27 void beginTrack( GpxTrack track);27 void beginTrack(IGpxTrack track); 28 28 29 29 /** 30 30 * Ends a GPX track. 31 31 */ 32 void endTrack( GpxTrack track);32 void endTrack(IGpxTrack track); 33 33 34 34 /** … … 46 46 * Starts a segment within a GPX track. 47 47 */ 48 void beginTrackSegment( GpxTrack track, IGpxTrackSegment segment);48 void beginTrackSegment(IGpxTrack track, IGpxTrackSegment segment); 49 49 50 50 /** 51 51 * Ends a segment within a GPX track. 52 52 */ 53 void endTrackSegment( GpxTrack track, IGpxTrackSegment segment);53 void endTrackSegment(IGpxTrack track, IGpxTrackSegment segment); 54 54 55 55 /** … … 67 67 * @param segment the track segment 68 68 */ 69 void visitTrackPoint(WayPoint wp, GpxTrack track, IGpxTrackSegment segment);69 void visitTrackPoint(WayPoint wp, IGpxTrack track, IGpxTrackSegment segment); 70 70 71 71 /** -
applications/editors/josm/plugins/NanoLog/build.xml
r35217 r35221 5 5 <property name="commit.message" value="NanoLog"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="15 496"/>7 <property name="plugin.main.version" value="15502"/> 8 8 <property name="plugin.author" value="Ilya Zverev"/> 9 9 <property name="plugin.class" value="nanolog.NanoLogPlugin"/> -
applications/editors/josm/plugins/NanoLog/src/nanolog/Correlator.java
r35218 r35221 12 12 import org.openstreetmap.josm.data.coor.LatLon; 13 13 import org.openstreetmap.josm.data.gpx.GpxData; 14 import org.openstreetmap.josm.data.gpx. GpxTrack;14 import org.openstreetmap.josm.data.gpx.IGpxTrack; 15 15 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 16 16 import org.openstreetmap.josm.data.gpx.WayPoint; … … 42 42 long firstGPXDate = -1; 43 43 outer: 44 for ( GpxTrack trk : data.tracks) {44 for (IGpxTrack trk : data.tracks) { 45 45 for (IGpxTrackSegment segment : trk.getSegments()) { 46 46 for (WayPoint curWp : segment.getWayPoints()) { … … 84 84 //int ret = 0; 85 85 Collections.sort(sortedEntries); 86 for ( GpxTrack track : data.tracks) {86 for (IGpxTrack track : data.tracks) { 87 87 for (IGpxTrackSegment segment : track.getSegments()) { 88 88 long prevWpTime = 0; … … 220 220 public static long getGpxDate(GpxData data, LatLon pos) { 221 221 EastNorth en = ProjectionRegistry.getProjection().latlon2eastNorth(pos); 222 for ( GpxTrack track : data.tracks) {222 for (IGpxTrack track : data.tracks) { 223 223 for (IGpxTrackSegment segment : track.getSegments()) { 224 224 long prevWpTime = 0; -
applications/editors/josm/plugins/editgpx/build.xml
r35211 r35221 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="15 496"/>6 <property name="plugin.main.version" value="15502"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxData.java
r34737 r35221 8 8 import org.openstreetmap.josm.data.gpx.GpxRoute; 9 9 import org.openstreetmap.josm.data.gpx.GpxTrack; 10 import org.openstreetmap.josm.data.gpx.IGpxTrack; 10 11 import org.openstreetmap.josm.data.gpx.WayPoint; 11 12 … … 18 19 19 20 public void load(GpxData data) { 20 for ( GpxTrack track: data.tracks) {21 for (IGpxTrack track: data.tracks) { 21 22 tracks.add(new EditGpxTrack(track)); 22 23 } -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrack.java
r35211 r35221 12 12 13 13 import org.openstreetmap.josm.data.gpx.GpxTrack; 14 import org.openstreetmap.josm.data.gpx.IGpxTrack; 14 15 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 15 16 import org.openstreetmap.josm.data.gpx.WayPoint; … … 21 22 private boolean isDeleted; 22 23 23 public EditGpxTrack( GpxTrack track) {24 public EditGpxTrack(IGpxTrack track) { 24 25 attributes.putAll(track.getAttributes()); 25 26 for (IGpxTrackSegment segment: track.getSegments()) { -
applications/editors/josm/plugins/gpsblam/build.xml
r35214 r35221 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="15 496"/>7 <property name="plugin.main.version" value="15502"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/gpsblam/src/org/openstreetmap/josm/plugins/gpsblam/GPSBlamInputData.java
r35214 r35221 10 10 11 11 import org.openstreetmap.josm.data.coor.CachedLatLon; 12 import org.openstreetmap.josm.data.gpx. GpxTrack;12 import org.openstreetmap.josm.data.gpx.IGpxTrack; 13 13 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 14 14 import org.openstreetmap.josm.data.gpx.WayPoint; … … 33 33 for (Layer l : layers) { 34 34 if (l.isVisible() && l instanceof GpxLayer) { 35 for ( GpxTrack track : ((GpxLayer) l).data.tracks) {35 for (IGpxTrack track : ((GpxLayer) l).data.tracks) { 36 36 for (IGpxTrackSegment segment: track.getSegments()) { 37 37 for (WayPoint wayPoint : segment.getWayPoints()) { -
applications/editors/josm/plugins/infomode/build.xml
r35215 r35221 5 5 <property name="commit.message" value="InfoMode : for shortcurt parser"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="15 496"/>7 <property name="plugin.main.version" value="15502"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoMode.java
r35215 r35221 26 26 import org.openstreetmap.josm.data.Bounds; 27 27 import org.openstreetmap.josm.data.coor.EastNorth; 28 import org.openstreetmap.josm.data.gpx. GpxTrack;28 import org.openstreetmap.josm.data.gpx.IGpxTrack; 29 29 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 30 30 import org.openstreetmap.josm.data.gpx.WayPoint; … … 219 219 if (l instanceof GpxLayer && pos != null) { 220 220 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) { 223 223 boolean f = true; 224 224 sg: for (IGpxTrackSegment seg : track.getSegments()) { … … 241 241 double minDist = 1e9, d; 242 242 WayPoint wp = null, oldWp = null, prevWp = null; 243 GpxTrack trk = null;243 IGpxTrack trk = null; 244 244 double maxD = mv.getDist100Pixel()/3; 245 for ( GpxTrack track : gpxL.data.tracks) {245 for (IGpxTrack track : gpxL.data.tracks) { 246 246 for (IGpxTrackSegment seg : track.getSegments()) { 247 247 oldWp = null; // next segment will have new previous point -
applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoPanel.java
r35215 r35221 20 20 21 21 import org.openstreetmap.josm.data.SystemOfMeasurement; 22 import org.openstreetmap.josm.data.gpx. GpxTrack;22 import org.openstreetmap.josm.data.gpx.IGpxTrack; 23 23 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 24 24 import org.openstreetmap.josm.data.gpx.WayPoint; … … 31 31 class InfoPanel extends JPanel { 32 32 33 private Collection< GpxTrack> tracks;34 private GpxTrack trk;33 private Collection<IGpxTrack> tracks; 34 private IGpxTrack trk; 35 35 36 36 private JLabel label1 = new JLabel(); … … 73 73 public void actionPerformed(ActionEvent e) { 74 74 if (tracks == null) return; 75 Set< GpxTrack> toRemove = new HashSet<>();75 Set<IGpxTrack> toRemove = new HashSet<>(); 76 76 77 77 double tm = -1; … … 84 84 } 85 85 86 for ( GpxTrack track : tracks) {86 for (IGpxTrack track : tracks) { 87 87 boolean f = true; 88 88 sg: for (IGpxTrackSegment seg : track.getSegments()) { … … 102 102 } 103 103 104 void setData(WayPoint wp, GpxTrack trk, double vel, Collection<GpxTrack> tracks) {104 void setData(WayPoint wp, IGpxTrack trk, double vel, Collection<IGpxTrack> tracks) { 105 105 this.tracks = tracks; 106 106 this.trk = trk; -
applications/editors/josm/plugins/livegps/build.xml
r34526 r35221 2 2 <project name="livegps" default="dist" basedir="."> 3 3 <property name="commit.message" value="Changed the constructor signature of the plugin main class"/> 4 <property name="plugin.main.version" value="1 4153"/>4 <property name="plugin.main.version" value="15502"/> 5 5 6 6 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/livegps/src/livegps/AppendableGpxTrackSegment.java
r33045 r35221 5 5 6 6 import org.openstreetmap.josm.data.Bounds; 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 import org.openstreetmap.josm.data.gpx.WithAttributes; 9 10 import org.openstreetmap.josm.tools.CopyList; 10 11 … … 13 14 * 14 15 */ 15 public class AppendableGpxTrackSegment implementsGpxTrackSegment {16 public class AppendableGpxTrackSegment extends WithAttributes implements IGpxTrackSegment { 16 17 17 18 private WayPoint[] wayPoints = new WayPoint[16]; -
applications/editors/josm/plugins/livegps/src/livegps/LiveGpsLayer.java
r34526 r35221 15 15 import org.openstreetmap.josm.data.coor.LatLon; 16 16 import org.openstreetmap.josm.data.gpx.GpxData; 17 import org.openstreetmap.josm.data.gpx. GpxTrack;17 import org.openstreetmap.josm.data.gpx.IGpxTrack; 18 18 import org.openstreetmap.josm.data.gpx.WayPoint; 19 19 import org.openstreetmap.josm.gui.MainApplication; … … 51 51 attr.put("desc", "josm live gps"); 52 52 53 GpxTrack trackBeingWritten = new SingleSegmentGpxTrack(trackSegment, attr);53 IGpxTrack trackBeingWritten = new SingleSegmentGpxTrack(trackSegment, attr); 54 54 data.tracks.add(trackBeingWritten); 55 55 -
applications/editors/josm/plugins/livegps/src/livegps/SingleSegmentGpxTrack.java
r33360 r35221 7 7 8 8 import org.openstreetmap.josm.data.Bounds; 9 import org.openstreetmap.josm.data.gpx. GpxTrack;10 import org.openstreetmap.josm.data.gpx. GpxTrackSegment;9 import org.openstreetmap.josm.data.gpx.IGpxTrack; 10 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 11 11 import org.openstreetmap.josm.data.gpx.WithAttributes; 12 12 13 public class SingleSegmentGpxTrack extends WithAttributes implements GpxTrack {13 public class SingleSegmentGpxTrack extends WithAttributes implements IGpxTrack { 14 14 15 private final GpxTrackSegment trackSegment;15 private final IGpxTrackSegment trackSegment; 16 16 17 public SingleSegmentGpxTrack( GpxTrackSegment trackSegment, Map<String, Object> attributes) {17 public SingleSegmentGpxTrack(IGpxTrackSegment trackSegment, Map<String, Object> attributes) { 18 18 this.attr = Collections.unmodifiableMap(attributes); 19 19 this.trackSegment = trackSegment; … … 31 31 32 32 @Override 33 public Collection< GpxTrackSegment> getSegments() {33 public Collection<IGpxTrackSegment> getSegments() { 34 34 return Collections.singleton(trackSegment); 35 35 } -
applications/editors/josm/plugins/measurement/build.xml
r35216 r35221 4 4 <property name="commit.message" value="recompile dure to core change"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="15 496"/>6 <property name="plugin.main.version" value="15502"/> 7 7 <property name="plugin.canloadatruntime" value="true"/> 8 8 -
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementLayer.java
r35216 r35221 29 29 import org.openstreetmap.josm.data.Bounds; 30 30 import org.openstreetmap.josm.data.coor.LatLon; 31 import org.openstreetmap.josm.data.gpx. GpxTrack;31 import org.openstreetmap.josm.data.gpx.IGpxTrack; 32 32 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 33 33 import org.openstreetmap.josm.data.gpx.WayPoint; … … 285 285 } 286 286 287 for ( GpxTrack trk : gpx.data.tracks) {287 for (IGpxTrack trk : gpx.data.tracks) { 288 288 for (IGpxTrackSegment trkseg : trk.getSegments()) { 289 289 for(WayPoint p: trkseg.getWayPoints()){ -
applications/editors/josm/plugins/public_transport/build.xml
r35219 r35221 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="15 496"/>7 <property name="plugin.main.version" value="15502"/> 8 8 9 9 <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 28 28 import org.openstreetmap.josm.data.coor.LatLon; 29 29 import org.openstreetmap.josm.data.gpx.GpxData; 30 import org.openstreetmap.josm.data.gpx. GpxTrack;30 import org.openstreetmap.josm.data.gpx.IGpxTrack; 31 31 import org.openstreetmap.josm.data.gpx.WayPoint; 32 32 import org.openstreetmap.josm.data.osm.DataSet; … … 210 210 if (data != null) { 211 211 Vector<TrackReference> trackRefs = new Vector<>(); 212 Iterator< GpxTrack> trackIter = data.tracks.iterator();212 Iterator<IGpxTrack> trackIter = data.tracks.iterator(); 213 213 while (trackIter.hasNext()) { 214 GpxTrack track = trackIter.next();214 IGpxTrack track = trackIter.next(); 215 215 trackRefs.add(new TrackReference(track, this)); 216 216 } -
applications/editors/josm/plugins/public_transport/src/org/openstreetmap/josm/plugins/public_transport/refs/TrackReference.java
r35219 r35221 14 14 import org.openstreetmap.josm.data.UndoRedoHandler; 15 15 import org.openstreetmap.josm.data.coor.LatLon; 16 import org.openstreetmap.josm.data.gpx. GpxTrack;16 import org.openstreetmap.josm.data.gpx.IGpxTrack; 17 17 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 18 18 import org.openstreetmap.josm.data.gpx.WayPoint; … … 24 24 25 25 public class TrackReference implements Comparable<TrackReference>, TableModelListener { 26 public GpxTrack track;26 public IGpxTrack track; 27 27 28 28 public TrackStoplistTableModel stoplistTM; … … 40 40 public boolean inEvent = false; 41 41 42 public TrackReference( GpxTrack track, StopImporterAction controller) {42 public TrackReference(IGpxTrack track, StopImporterAction controller) { 43 43 this.track = track; 44 44 this.stoplistTM = new TrackStoplistTableModel(this); … … 71 71 } 72 72 73 public GpxTrack getGpxTrack() {73 public IGpxTrack getGpxTrack() { 74 74 return track; 75 75 }
Note:
See TracChangeset
for help on using the changeset viewer.