Changeset 17367 in osm


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

Cleanup of deprecated data API

Location:
applications/editors/josm/plugins/Create_grid_of_ways
Files:
2 edited

Legend:

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

    r16620 r17367  
    2626                <attribute name="Plugin-Description" value="Create a grid of ways."/>
    2727                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/Create_grid_of_ways"/>
    28                 <attribute name="Plugin-Mainversion" value="1815"/>
     28                <attribute name="Plugin-Mainversion" value="2012"/>
    2929                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3030            </manifest>
  • applications/editors/josm/plugins/Create_grid_of_ways/src/CreateGridOfWaysPlugin/CreateGridOfWaysAction.java

    r16620 r17367  
    5454            return;
    5555        }
    56         nodesWay1.addAll(((Way)sel.toArray()[0]).nodes);
    57         nodesWay2.addAll(((Way)sel.toArray()[1]).nodes);
     56        nodesWay1.addAll(((Way)sel.toArray()[0]).getNodes());
     57        nodesWay2.addAll(((Way)sel.toArray()[1]).getNodes());
    5858        Node nodeCommon = null;
    5959        for (Node n : nodesWay1)
     
    8383                    continue;
    8484                if (n2.equals(nodeCommon)) {
    85                     w1[c1].nodes.add(n1);
     85                    w1[c1].addNode(n1);
    8686                    continue;
    8787                }
    8888                if (n1.equals(nodeCommon)) {
    89                     w2[c2++].nodes.add(n2);
     89                    w2[c2++].addNode(n2);
    9090                    continue;
    9191                }
    9292                Node nodeOfGrid = new Node(new LatLon(n2.getCoor().lat()+latDif,n2.getCoor().lon()+lonDif));
    9393                cmds.add(new AddCommand(nodeOfGrid));
    94                 w1[c1].nodes.add(nodeOfGrid);
    95                 w2[c2++].nodes.add(nodeOfGrid);
     94                w1[c1].addNode(nodeOfGrid);
     95                w2[c2++].addNode(nodeOfGrid);
    9696            }
    9797            if (!n1.equals(nodeCommon))
Note: See TracChangeset for help on using the changeset viewer.