Changeset 17369 in osm for applications/editors/josm


Ignore:
Timestamp:
2009-08-30T18:08:45+02:00 (15 years ago)
Author:
guggis
Message:

Cleanup of deprecated data API

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

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/editgpx/build.xml

    r16793 r17369  
    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="1893" />
     28                <attribute name="Plugin-Mainversion" value="2012" />
    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

    r16793 r17369  
    151151
    152152            ArrayList<WayPoint> trkseg = null;
    153             for (Node n : w.nodes) {
     153            for (Node n : w.getNodes()) {
    154154                if (n.incomplete || n.deleted) {
    155155                    trkseg = null;
     
    191191            wpt.setTime();
    192192
    193             if (n.keys != null && n.keys.containsKey("name")) {
    194                 wpt.attr.put("name", n.keys.get("name"));
     193            if (n.getKeys() != null && n.keySet().contains("name")) {
     194                wpt.attr.put("name", n.get("name"));
    195195            }
    196196            gpxData.waypoints.add(wpt);
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/GPXLayerImportAction.java

    r16793 r17369  
    120120                                n.setTimestamp(DateUtils.fromString(timestr));
    121121                            dataSet.nodes.add(n);
    122                             w.nodes.add(n); //TODO what to do with these while deletion
     122                            w.addNode(n); //TODO what to do with these while deletion
    123123                        }
    124124                        dataSet.ways.add(w);
Note: See TracChangeset for help on using the changeset viewer.