Changeset 18413 in osm


Ignore:
Timestamp:
2009-11-02T08:46:24+01:00 (15 years ago)
Author:
jttt
Message:

Replace Dataset.nodes with getNodes(), etc

Location:
applications/editors/josm/plugins
Files:
4 added
6 edited

Legend:

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

    r18398 r18413  
    9191                <attribute name="Plugin-Description" value="Group common Address Interpolation inputs in a single dialog,"/>
    9292                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/AddrInterpolation"/>
    93                 <attribute name="Plugin-Mainversion" value="2350"/>
     93                <attribute name="Plugin-Mainversion" value="2381"/>
    9494                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    9595            </manifest>
  • applications/editors/josm/plugins/addrinterpolation/src/org/openstreetmap/josm/plugins/AddrInterpolation/AddrInterpolationDialog.java

    r18399 r18413  
    5757
    5858/**
    59  * 
     59 *
    6060 */
    6161
     
    516516                DataSet currentDataSet = Main.main.getCurrentDataSet();
    517517                if (currentDataSet != null) {
    518                         for (Relation relation : currentDataSet.relations) {
     518                        for (Relation relation : currentDataSet.getRelations()) {
    519519
    520520                                String relationType = relation.get("type");
  • applications/editors/josm/plugins/cadastre-fr/build.xml

    r18404 r18413  
    2626                <attribute name="Plugin-Description" value="A special handler for the French land registry WMS server."/>
    2727                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/FR:JOSM/Fr:Plugin/Cadastre"/>
    28                 <attribute name="Plugin-Mainversion" value="2327"/>
     28                <attribute name="Plugin-Mainversion" value="2381"/>
    2929                <attribute name="Plugin-Stage" value="60"/>
    3030                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGBuilding.java

    r17528 r18413  
    110110                Node nodeToAdd = new Node(Main.proj.eastNorth2latlon(eastNorth));
    111111                // check if new node is not already created by another new path
    112                 Node nearestNewNode = checkNearestNode(nodeToAdd, svgDataSet.nodes);
     112                Node nearestNewNode = checkNearestNode(nodeToAdd, svgDataSet.getNodes());
    113113                if (nearestNewNode == nodeToAdd)
    114114                    svgDataSet.addPrimitive(nearestNewNode);
     
    128128
    129129        // simplify ways and check if we can reuse existing OSM nodes
    130         for (Way wayToAdd : svgDataSet.ways)
     130        for (Way wayToAdd : svgDataSet.getWays())
    131131            new SimplifyWay().simplifyWay(wayToAdd, svgDataSet, 0.5);
    132132        // check if the new way or its nodes is already in OSM layer
    133         for (Node n : svgDataSet.nodes) {
    134             Node nearestNewNode = checkNearestNode(n, Main.main.getCurrentDataSet().nodes);
     133        for (Node n : svgDataSet.getNodes()) {
     134            Node nearestNewNode = checkNearestNode(n, Main.main.getCurrentDataSet().getNodes());
    135135            if (nearestNewNode != n) {
    136136                // replace the SVG node by the OSM node
    137                 for (Way w : svgDataSet.ways) {
     137                for (Way w : svgDataSet.getWays()) {
    138138                    int replaced = 0;
    139139                    for (Node node : w.getNodes())
     
    151151
    152152        Collection<Command> cmds = new LinkedList<Command>();
    153         for (Node node : svgDataSet.nodes)
     153        for (Node node : svgDataSet.getNodes())
    154154            if (!node.isDeleted())
    155155                cmds.add(new AddCommand(node));
    156         for (Way way : svgDataSet.ways)
     156        for (Way way : svgDataSet.getWays())
    157157            if (!way.isDeleted())
    158158                cmds.add(new AddCommand(way));
  • applications/editors/josm/plugins/czechaddress/build.xml

    r18404 r18413  
    5252            <attribute name="Plugin-Description" value="Creating and handling address nodes and buildings within Czech Republic."/>
    5353            <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/Cz:JOSM/Plugins/CzechAddress"/>
    54             <attribute name="Plugin-Mainversion" value="2323"/>
     54            <attribute name="Plugin-Mainversion" value="2381"/>
    5555            <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    5656        </manifest>
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/SplitAreaByEmptyWayAction.java

    r17603 r18413  
    124124        }
    125125
    126         for (Relation relation : Main.main.getCurrentDataSet().relations)
     126        for (Relation relation : Main.main.getCurrentDataSet().getRelations())
    127127            for (RelationMember areaMember : relation.getMembers())
    128128                if (area.equals(areaMember.getMember()))
Note: See TracChangeset for help on using the changeset viewer.