Ignore:
Timestamp:
2009-08-03T21:18:50+02:00 (15 years ago)
Author:
jttt
Message:

Way refactoring - rewritten another parts of code to the new nodes api

Location:
trunk/src/org/openstreetmap/josm/gui/conflict
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/nodes/NodeListMergeModel.java

    r1655 r1898  
    2323     * Populates the model with the nodes in the two {@see Way}s <code>my</code> and
    2424     * <code>their</code>.
    25      * 
     25     *
    2626     * @param my  my way (i.e. the way in the local dataset)
    2727     * @param their their way (i.e. the way in the server dataset)
     
    3737        getMyEntries().clear();
    3838        getTheirEntries().clear();
    39         for (Node n : my.nodes) {
     39        for (Node n : my.getNodes()) {
    4040            getMyEntries().add(n);
    4141        }
    42         for (Node n : their.nodes) {
     42        for (Node n : their.getNodes()) {
    4343            getTheirEntries().add(n);
    4444        }
     
    5555    /**
    5656     * Builds the command to resolve conflicts in the node list of a way
    57      * 
     57     *
    5858     * @param my  my way. Must not be null.
    5959     * @param their  their way. Must not be null
  • trunk/src/org/openstreetmap/josm/gui/conflict/properties/PropertiesMergeModel.java

    r1847 r1898  
    533533
    534534        HashMap<Long,OsmPrimitive> candidates = new HashMap<Long,OsmPrimitive>();
    535         for (Node n : way.nodes) {
     535        for (Node n : way.getNodes()) {
    536536            if (n.id > 0 && ! candidates.values().contains(n)) {
    537537                candidates.put(n.id, n);
Note: See TracChangeset for help on using the changeset viewer.