Changeset 28204 in osm for applications/editors/josm/plugins/editgpx/src/org
- Timestamp:
- 2012-04-05T21:16:32+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/GPXLayerImportAction.java
r26202 r28204 81 81 82 82 JCheckBox dropFirst = new JCheckBox(tr("Drop existing path")); 83 dropFirst.setEnabled(!this.data.getTracks().isEmpty()); 83 84 84 85 panel.add(layerList); … … 99 100 } 100 101 101 for (Object o : layerList.getSelectedValues()) { 102 GpxLayer gpx = (GpxLayer )o; 103 synchronized(importing) { 104 this.data.load(gpx.data, dropFirst.isSelected()); 102 if (dropFirst.isSelected()) { 103 this.data.getTracks().clear(); 104 } 105 synchronized(importing) { 106 for (Object o : layerList.getSelectedValues()) { 107 GpxLayer gpx = (GpxLayer )o; 108 this.data.load(gpx.data); 105 109 } 106 110 } -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxData.java
r23650 r28204 16 16 private final List<WayPoint> waypoints = new ArrayList<WayPoint>(); 17 17 18 public void load(GpxData data, boolean drop) { 19 if(drop) 20 tracks.clear(); 18 public void load(GpxData data) { 21 19 for (GpxTrack track: data.tracks) { 22 20 tracks.add(new EditGpxTrack(track));
Note:
See TracChangeset
for help on using the changeset viewer.