Changeset 28008 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/CalibrationObject.java
- Timestamp:
- 2012-03-06T21:32:44+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/CalibrationObject.java
r27986 r28008 1 1 package iodb; 2 2 3 import org.openstreetmap.josm.data.osm.OsmPrimitive;4 import org.openstreetmap.josm.data.osm. User;3 import java.util.Map; 4 import org.openstreetmap.josm.data.osm.*; 5 5 6 6 /** … … 18 18 19 19 public CalibrationObject(OsmPrimitive object) { 20 this(object, -1);20 this(object, getLastUserId(object)); 21 21 } 22 22 … … 28 28 return object; 29 29 } 30 31 private static long getLastUserId( OsmPrimitive object ) { 32 return object.getUser() == null ? -1 : object.getUser().getId(); // todo? 33 } 34 35 @Override 36 public void putServerParams( Map<String, String> map ) { 37 super.putServerParams(map); 38 map.put("object", object instanceof Node ? "node" : "way"); 39 map.put("id", String.valueOf(object.getId())); 40 map.put("lastuser", String.valueOf(lastUserId)); 41 } 42 30 43 }
Note:
See TracChangeset
for help on using the changeset viewer.