Last change
on this file since 2070 was 2070, checked in by Gubaer, 15 years ago |
new: rewrite of CombineWay action
new: conflict resolution dialog for CombineWay, including conflicts for different relation memberships
cleanup: cleanup in OsmReader, reduces memory footprint and reduces parsing time
cleanup: made most of the public fields in OsmPrimitive @deprecated, added accessors and changed the code
cleanup: replaced usages of @deprecated constructors for ExtendedDialog
fixed #3208: Combine ways brokes relation order
WARNING: this changeset touches a lot of code all over the code base. "latest" might become slightly unstable in the next days. Also experience incompatibility issues with plugins in the next few days.
|
-
Property svn:eol-style
set to
native
|
File size:
1.4 KB
|
Line | |
---|
1 | // License: GPL. Copyright 2007 by Martijn van Oosterhout and others
|
---|
2 | package org.openstreetmap.josm.data.osm;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.osm.visitor.Visitor;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * Represents a single changeset in JOSM. For now its only used during
|
---|
10 | * upload but in the future we may do more.
|
---|
11 | *
|
---|
12 | */
|
---|
13 | public final class Changeset extends OsmPrimitive {
|
---|
14 | /**
|
---|
15 | * Time of last modification to this object. This is not set by JOSM but
|
---|
16 | * read from the server and delivered back to the server unmodified.
|
---|
17 | */
|
---|
18 | public String end_timestamp = null;
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * Time of first modification to this object. This is not set by JOSM but
|
---|
22 | * read from the server and delivered back to the server unmodified.
|
---|
23 | */
|
---|
24 | public String start_timestamp = null;
|
---|
25 |
|
---|
26 | @Override
|
---|
27 | public void visit(Visitor v) {
|
---|
28 | v.visit(this);
|
---|
29 | }
|
---|
30 |
|
---|
31 | public int compareTo(OsmPrimitive other) {
|
---|
32 | if (other instanceof Changeset) return Long.valueOf(getId()).compareTo(other.getId());
|
---|
33 | return 1;
|
---|
34 | }
|
---|
35 |
|
---|
36 | @Override
|
---|
37 | public String getName() {
|
---|
38 | // no translation
|
---|
39 | return "changeset " + getId();
|
---|
40 | }
|
---|
41 |
|
---|
42 | @Override
|
---|
43 | public String getLocalName(){
|
---|
44 | return tr("Changeset {0}",getId());
|
---|
45 | }
|
---|
46 |
|
---|
47 | @Override
|
---|
48 | public String getDisplayName(NameFormatter formatter) {
|
---|
49 | return formatter.format(this);
|
---|
50 | }
|
---|
51 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.