Changeset 18426 in osm for applications/editors


Ignore:
Timestamp:
2009-11-02T21:10:03+01:00 (15 years ago)
Author:
jttt
Message:

Replace Dataset.nodes with getNodes(), etc

Location:
applications/editors/josm/plugins/editgpx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/editgpx/.classpath

    r14221 r18426  
    33        <classpathentry kind="src" path="src"/>
    44        <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"/>
    67        <classpathentry kind="output" path="bin"/>
    78</classpath>
  • applications/editors/josm/plugins/editgpx/build.xml

    r18144 r18426  
    2626                <attribute name="Plugin-Description" value="Allows the user to anonymize timestamps and delete parts of huge GPX tracks very fast." />
    2727                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/EditGpx" />
    28                 <attribute name="Plugin-Mainversion" value="2263" />
     28                <attribute name="Plugin-Mainversion" value="2388" />
    2929                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3030            </manifest>
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java

    r17530 r18426  
    5757    public void initializeImport() {
    5858        try {
    59             if(dataSet.nodes.isEmpty() ) {
     59            if(dataSet.getNodes().isEmpty() ) {
    6060                layerImport.activateImport();
    6161            }
     
    111111        //don't iterate through dataSet whiling making changes
    112112        synchronized(layerImport.importing) {
    113             for(Node n: dataSet.nodes) {
     113            for(Node n: dataSet.getNodes()) {
    114114                if (!n.isDeleted()) {
    115115                    Point pnt = Main.map.mapView.getPoint(n.getEastNorth());
     
    142142        HashSet<Node> doneNodes = new HashSet<Node>();
    143143        //add all ways
    144         for (Way w : dataSet.ways) {
     144        for (Way w : dataSet.getWays()) {
    145145            if (w.incomplete || w.isDeleted()) continue;
    146146            GpxTrack trk = new GpxTrack();
     
    178178
    179179        // add nodes as waypoints
    180         for (Node n : dataSet.nodes) {
     180        for (Node n : dataSet.getNodes()) {
    181181            if (n.incomplete || n.isDeleted() || doneNodes.contains(n)) continue;
    182182
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxMode.java

    r17530 r18426  
    1313import org.openstreetmap.josm.Main;
    1414import org.openstreetmap.josm.actions.mapmode.MapMode;
    15 import org.openstreetmap.josm.data.coor.EastNorth;
    1615import org.openstreetmap.josm.data.osm.DataSet;
    1716import org.openstreetmap.josm.data.osm.Node;
     
    6766
    6867            //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()) {
    7069                Point p = Main.map.mapView.getPoint(n);
    7170                if (r.contains(p)) {
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/GPXLayerImportAction.java

    r17369 r18426  
    119119                            if(timestr != null)
    120120                                n.setTimestamp(DateUtils.fromString(timestr));
    121                             dataSet.nodes.add(n);
     121                            dataSet.addPrimitive(n);
    122122                            w.addNode(n); //TODO what to do with these while deletion
    123123                        }
    124                         dataSet.ways.add(w);
     124                        dataSet.addPrimitive(w);
    125125                    }
    126126                }
Note: See TracChangeset for help on using the changeset viewer.