- Timestamp:
- 2009-08-08T14:09:36+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Changeset.java
r1677 r1933 3 3 4 4 import org.openstreetmap.josm.data.osm.visitor.Visitor; 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 6 7 /** … … 22 23 public String start_timestamp = null; 23 24 25 @Override 24 26 public void visit(Visitor v) { 25 27 v.visit(this); 26 28 } 27 29 28 public int compareTo(OsmPrimitive arg0) {29 if ( arg0 instanceof Changeset) return Long.valueOf(id).compareTo(arg0.id);30 public int compareTo(OsmPrimitive other) { 31 if (other instanceof Changeset) return Long.valueOf(id).compareTo(other.id); 30 32 return 1; 31 33 } 34 35 @Override 36 public String getName() { 37 return tr("Changeset {0}",id); 38 } 32 39 } -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r1932 r1933 359 359 } 360 360 361 362 363 364 365 366 public String getName() { 367 return null; 368 } 361 /** 362 * Replies the name of this primitive. 363 * 364 * @return the name of this primitive 365 */ 366 public abstract String getName(); 369 367 370 368 /**
Note:
See TracChangeset
for help on using the changeset viewer.