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

Last change on this file since 8465 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
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 {@link org.openstreetmap.josm.data.osm.history.History}
6 * of an {@link org.openstreetmap.josm.data.osm.OsmPrimitive}.
7 * @author karl
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 /**
17 * Returns the opposite point in time.
18 * @return the opposite point in time
19 */
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.