Last change
on this file since 10212 was 6827, checked in by Don-vip, 10 years ago |
fix #9659 - show changeset source in history dialog
|
-
Property svn:eol-style
set to
native
|
File size:
844 bytes
|
Rev | Line | |
---|
[2512] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.gui.history;
|
---|
| 3 |
|
---|
| 4 | /**
|
---|
[5835] | 5 | * PointInTimeType enumerates two points in time in the {@link org.openstreetmap.josm.data.osm.history.History}
|
---|
| 6 | * of an {@link org.openstreetmap.josm.data.osm.OsmPrimitive}.
|
---|
[2512] | 7 | * @author karl
|
---|
| 8 | */
|
---|
| 9 | public enum PointInTimeType {
|
---|
| 10 | /** the point in time selected as reference point when comparing two version */
|
---|
| 11 | REFERENCE_POINT_IN_TIME,
|
---|
| 12 |
|
---|
| 13 | /** the point in time selected as current point when comparing two version */
|
---|
| 14 | CURRENT_POINT_IN_TIME;
|
---|
| 15 |
|
---|
[6827] | 16 | /**
|
---|
| 17 | * Returns the opposite point in time.
|
---|
| 18 | * @return the opposite point in time
|
---|
| 19 | */
|
---|
[2512] | 20 | public PointInTimeType opposite() {
|
---|
| 21 | if (this.equals(REFERENCE_POINT_IN_TIME))
|
---|
| 22 | return CURRENT_POINT_IN_TIME;
|
---|
| 23 | else
|
---|
| 24 | return REFERENCE_POINT_IN_TIME;
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.