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

Last change on this file since 2245 was 1750, checked in by Gubaer, 15 years ago

new: replaced global conflict list by conflict list per layer, similar to datasets

File size: 693 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.history;
3
4
5/**
6 * PointInTimeType enumerates two points in time in the {@see History} of an {@see OsmPrimitive}.
7 * @author karl
8 *
9 */
10public enum PointInTimeType {
11 /** the point in time selected as reference point when comparing two version */
12 REFERENCE_POINT_IN_TIME,
13
14 /** the point in time selected as current point when comparing two version */
15 CURRENT_POINT_IN_TIME;
16
17 public PointInTimeType opposite() {
18 if (this.equals(REFERENCE_POINT_IN_TIME))
19 return CURRENT_POINT_IN_TIME;
20 else
21 return REFERENCE_POINT_IN_TIME;
22 }
23}
Note: See TracBrowser for help on using the repository browser.