Changeset 628 in josm
- Timestamp:
- 2008-05-11T00:51:33+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/ChangePropertyCommand.java
r627 r628 6 6 7 7 import java.util.Collection; 8 import java.util.Collections; 8 9 import java.util.LinkedList; 9 10 import java.util.List; … … 41 42 public ChangePropertyCommand(Collection<OsmPrimitive> objects, String key, String value) { 42 43 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)); 43 50 this.key = key; 44 51 this.value = value; -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r627 r628 36 36 import org.openstreetmap.josm.data.Preferences; 37 37 import org.openstreetmap.josm.data.coor.EastNorth; 38 import org.openstreetmap.josm.data.coor.LatLon; 38 39 import org.openstreetmap.josm.data.osm.DataSet; 39 40 import org.openstreetmap.josm.data.osm.DataSource; … … 391 392 } 392 393 } 394 395 public boolean containsPoint(LatLon coor) 396 { 397 // we'll assume that if this has no data sources 398 // that it also has no borders 399 if (this.data.dataSources.isEmpty()) 400 return true; 401 402 boolean layer_bounds_point = false; 403 for (DataSource src : this.data.dataSources) { 404 if (src.bounds.contains(coor)) { 405 layer_bounds_point = true; 406 break; 407 } 408 } 409 return layer_bounds_point; 410 } 393 411 }
Note:
See TracChangeset
for help on using the changeset viewer.