Changeset 3257 in osm for applications/editors/josm/plugins/livegps
- Timestamp:
- 2007-06-18T15:59:25+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/livegps/livegps/LiveGpsLayer.java
r3095 r3257 6 6 import java.beans.PropertyChangeEvent; 7 7 import java.beans.PropertyChangeListener; 8 import java.text.SimpleDateFormat; 8 9 import java.util.ArrayList; 9 10 import java.util.Collection; … … 25 26 //JLabel lbl; 26 27 boolean autocenter; 28 private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); 27 29 28 30 public LiveGpsLayer(Collection<Collection<GpsPoint>> data) … … 51 53 52 54 lastPos = thisPos; 53 lastPoint = new GpsPoint (thisPos, new Date().toString());55 lastPoint = new GpsPoint (thisPos, dateFormat.format(new Date())); 54 56 // synchronize when adding data, as otherwise the autosave action 55 57 // needs concurrent access and this results in an exception!
Note:
See TracChangeset
for help on using the changeset viewer.