Ignore:
Timestamp:
2008-05-11T00:51:33+02:00 (12 years ago)
Author:
framm
Message:
  • make ChangePropertyCommand() constructor take single object (patch by Dave Hansen <dave@…>)
  • Give OsmDataLayer a containsPoint() function (patch by DH, modified)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/ChangePropertyCommand.java

    r627 r628  
    66
    77import java.util.Collection;
     8import java.util.Collections;
    89import java.util.LinkedList;
    910import java.util.List;
     
    4142        public ChangePropertyCommand(Collection<OsmPrimitive> objects, String key, String value) {
    4243                this.objects = new LinkedList<OsmPrimitive>(objects);
     44                this.key = key;
     45                this.value = value;
     46        }
     47
     48        public ChangePropertyCommand(OsmPrimitive object, String key, String value) {
     49                this.objects = new LinkedList<OsmPrimitive>(Collections.singleton(object));
    4350                this.key = key;
    4451                this.value = value;
Note: See TracChangeset for help on using the changeset viewer.