Ignore:
Timestamp:
2009-12-27T14:33:13+01:00 (14 years ago)
Author:
stoecker
Message:

added update modified action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r2657 r2682  
    182182                o.add(osm);
    183183            }
     184        return o;
     185    }
     186
     187    /**
     188     * @return A collection containing all modified primitives
     189     */
     190    public Collection<OsmPrimitive> allModifiedPrimitives() {
     191        Collection<OsmPrimitive> o = new LinkedList<OsmPrimitive>();
     192        for (OsmPrimitive osm : allPrimitives()) {
     193            if (osm.isVisible() && osm.isModified()) {
     194                o.add(osm);
     195            }
     196        }
    184197        return o;
    185198    }
Note: See TracChangeset for help on using the changeset viewer.