Ignore:
Timestamp:
2013-03-18T21:58:17+01:00 (13 years ago)
Author:
zverik
Message:

some updates to iodb plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/CalibrationObject.java

    r28008 r29371  
    1818
    1919    public CalibrationObject(OsmPrimitive object) {
    20         this(object, getLastUserId(object));
     20        this(object, 0);
    2121    }
    2222
     
    2929    }
    3030   
    31     private static long getLastUserId( OsmPrimitive object ) {
    32         return object.getUser() == null ? -1 : object.getUser().getId(); // todo?
    33     }
    34 
    3531    @Override
    3632    public void putServerParams( Map<String, String> map ) {
     
    3834        map.put("object", object instanceof Node ? "node" : "way");
    3935        map.put("id", String.valueOf(object.getId()));
    40         map.put("lastuser", String.valueOf(lastUserId));
    4136    }
    42    
     37
     38    @Override
     39    public String toString() {
     40        return "CalibrationObject{" + "object=" + object + ", lastUserId=" + lastUserId + "position=" + position + ", date=" + date + ", author=" + author + ", description=" + description + ", abandonDate=" + abandonDate + '}';
     41    }
    4342}
Note: See TracChangeset for help on using the changeset viewer.