source: josm/trunk/src/org/openstreetmap/josm/gui/history/PointInTimeType.java@ 2689

Last change on this file since 2689 was 2512, checked in by stoecker, 14 years ago

i18n updated, fixed files to reduce problems when applying patches, fix #4017

File size: 669 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.history;
3
4/**
5 * PointInTimeType enumerates two points in time in the {@see History} of an {@see OsmPrimitive}.
6 * @author karl
7 *
8 */
9public 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
16 public PointInTimeType opposite() {
17 if (this.equals(REFERENCE_POINT_IN_TIME))
18 return CURRENT_POINT_IN_TIME;
19 else
20 return REFERENCE_POINT_IN_TIME;
21 }
22}
Note: See TracBrowser for help on using the repository browser.