Changeset 19681 in osm for applications/editors/josm/plugins/globalsat
- Timestamp:
- 2010-01-30T20:10:15+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/globalsat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/globalsat/build.xml
r19436 r19681 33 33 <property name="commit.message" value="Changed constructor signature of plugin main class" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="2 830" />35 <property name="plugin.main.version" value="2907" /> 36 36 37 37 <property name="josm" location="../../core/dist/josm-custom.jar"/> -
applications/editors/josm/plugins/globalsat/src/org/openstreetmap/josm/plugins/globalsat/GlobalsatDg100.java
r16585 r19681 17 17 import java.util.ArrayList; 18 18 import java.util.Collection; 19 import java.util.Collections; 19 20 import java.util.List; 20 21 … … 26 27 import org.openstreetmap.josm.data.coor.LatLon; 27 28 import org.openstreetmap.josm.data.gpx.GpxData; 28 import org.openstreetmap.josm.data.gpx.GpxTrack; 29 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrackSegment; 30 import org.openstreetmap.josm.data.gpx.SingleSegmentGpxTrack; 29 31 import org.openstreetmap.josm.data.gpx.WayPoint; 30 32 import org.openstreetmap.josm.gui.progress.ProgressMonitor; … … 148 150 if(gpsRecList.size() > 0){ 149 151 GpsRec last = null; 150 GpxTrack trk= new GpxTrack();152 result = new GpxData(); 151 153 Collection<WayPoint> seg = new ArrayList<WayPoint>(100); 152 result = new GpxData();153 result.tracks.add(trk);154 trk.trackSegs.add(seg);155 154 for(GpsRec r:gpsRecList){ 156 155 if(cancelled){ … … 166 165 progressMonitor.worked(1); 167 166 } 167 result.tracks.add(new SingleSegmentGpxTrack(new ImmutableGpxTrackSegment(seg), Collections.<String, Object>emptyMap())); 168 168 } 169 169 return result;
Note:
See TracChangeset
for help on using the changeset viewer.