Changeset 18426 in osm for applications/editors
- Timestamp:
- 2009-11-02T21:10:03+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/editgpx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/.classpath
r14221 r18426 3 3 <classpathentry kind="src" path="src"/> 4 4 <classpathentry kind="src" path="src-common"/> 5 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 5 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JDK 5"/> 6 <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/> 6 7 <classpathentry kind="output" path="bin"/> 7 8 </classpath> -
applications/editors/josm/plugins/editgpx/build.xml
r18144 r18426 26 26 <attribute name="Plugin-Description" value="Allows the user to anonymize timestamps and delete parts of huge GPX tracks very fast." /> 27 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/EditGpx" /> 28 <attribute name="Plugin-Mainversion" value="2 263" />28 <attribute name="Plugin-Mainversion" value="2388" /> 29 29 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 30 30 </manifest> -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java
r17530 r18426 57 57 public void initializeImport() { 58 58 try { 59 if(dataSet. nodes.isEmpty() ) {59 if(dataSet.getNodes().isEmpty() ) { 60 60 layerImport.activateImport(); 61 61 } … … 111 111 //don't iterate through dataSet whiling making changes 112 112 synchronized(layerImport.importing) { 113 for(Node n: dataSet. nodes) {113 for(Node n: dataSet.getNodes()) { 114 114 if (!n.isDeleted()) { 115 115 Point pnt = Main.map.mapView.getPoint(n.getEastNorth()); … … 142 142 HashSet<Node> doneNodes = new HashSet<Node>(); 143 143 //add all ways 144 for (Way w : dataSet. ways) {144 for (Way w : dataSet.getWays()) { 145 145 if (w.incomplete || w.isDeleted()) continue; 146 146 GpxTrack trk = new GpxTrack(); … … 178 178 179 179 // add nodes as waypoints 180 for (Node n : dataSet. nodes) {180 for (Node n : dataSet.getNodes()) { 181 181 if (n.incomplete || n.isDeleted() || doneNodes.contains(n)) continue; 182 182 -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxMode.java
r17530 r18426 13 13 import org.openstreetmap.josm.Main; 14 14 import org.openstreetmap.josm.actions.mapmode.MapMode; 15 import org.openstreetmap.josm.data.coor.EastNorth;16 15 import org.openstreetmap.josm.data.osm.DataSet; 17 16 import org.openstreetmap.josm.data.osm.Node; … … 67 66 68 67 //go through nodes and mark the ones in the selection rect as deleted 69 for (Node n: dataSet. nodes) {68 for (Node n: dataSet.getNodes()) { 70 69 Point p = Main.map.mapView.getPoint(n); 71 70 if (r.contains(p)) { -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/GPXLayerImportAction.java
r17369 r18426 119 119 if(timestr != null) 120 120 n.setTimestamp(DateUtils.fromString(timestr)); 121 dataSet. nodes.add(n);121 dataSet.addPrimitive(n); 122 122 w.addNode(n); //TODO what to do with these while deletion 123 123 } 124 dataSet. ways.add(w);124 dataSet.addPrimitive(w); 125 125 } 126 126 }
Note:
See TracChangeset
for help on using the changeset viewer.