Ignore:
Timestamp:
2009-11-02T07:51:28+01:00 (15 years ago)
Author:
jttt
Message:

Change most occurrences of Dataset.nodes/ways/relations with getNodes()/../.. or addPrimitive

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmServerBackreferenceReader.java

    r2361 r2381  
    221221        progressMonitor.beginTask(null, 2);
    222222        try {
    223             Collection<Way> waysToCheck = new ArrayList<Way>(ds.ways);
     223            Collection<Way> waysToCheck = new ArrayList<Way>(ds.getWays());
    224224            if (isReadFull() ||primitiveType.equals(OsmPrimitiveType.NODE)) {
    225225                for (Way way: waysToCheck) {
     
    233233            }
    234234            if (isReadFull()) {
    235                 Collection<Relation> relationsToCheck  = new ArrayList<Relation>(ds.relations);
     235                Collection<Relation> relationsToCheck  = new ArrayList<Relation>(ds.getRelations());
    236236                for (Relation relation: relationsToCheck) {
    237237                    if (!relation.isNew() && relation.incomplete) {
  • trunk/src/org/openstreetmap/josm/io/OsmWriter.java

    r2327 r2381  
    7272
    7373    public void writeContent(DataSet ds) {
    74         for (Node n : ds.nodes)
     74        for (Node n : ds.getNodes()) {
    7575            if (shouldWrite(n)) {
    7676                visit(n);
    7777            }
    78         for (Way w : ds.ways)
     78        }
     79        for (Way w : ds.getWays()) {
    7980            if (shouldWrite(w)) {
    8081                visit(w);
    8182            }
    82         for (Relation e : ds.relations)
     83        }
     84        for (Relation e : ds.getRelations()) {
    8385            if (shouldWrite(e)) {
    8486                visit(e);
    8587            }
     88        }
    8689    }
    8790
Note: See TracChangeset for help on using the changeset viewer.