Changeset 6449 in josm
- Timestamp:
- 2013-12-07T04:29:28+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/HistoryInfoAction.java
r6448 r6449 1 // License: GPL. For details, see LICENSE file.1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.actions; 3 3 … … 14 14 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 15 15 16 /** 17 * Display history information about OSM ways, nodes, or relations. 18 * @since 968 19 */ 16 20 public class HistoryInfoAction extends JosmAction { 17 21 22 /** 23 * Constructs a new {@code HistoryInfoAction}. 24 */ 18 25 public HistoryInfoAction() { 19 26 super(tr("History"), "about", … … 40 47 } 41 48 49 /** 50 * Dialog allowing to choose object id if no one is selected. 51 * @since 6448 52 */ 42 53 public static class HistoryObjectIDDialog extends OsmIdSelectionDialog { 43 54 55 /** 56 * Constructs a new {@code HistoryObjectIDDialog}. 57 */ 44 58 public HistoryObjectIDDialog() { 45 59 super(Main.parent, tr("Show history"), new String[]{tr("Show history"), tr("Cancel")}); … … 48 62 } 49 63 } 50 51 64 } -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryDataSet.java
r6440 r6449 13 13 import org.openstreetmap.josm.Main; 14 14 import org.openstreetmap.josm.data.osm.Changeset; 15 import org.openstreetmap.josm.data.osm.IPrimitive; 15 16 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 16 17 import org.openstreetmap.josm.data.osm.PrimitiveId; … … 20 21 import org.openstreetmap.josm.gui.layer.Layer; 21 22 import org.openstreetmap.josm.tools.CheckParameterUtil; 22 import org.openstreetmap.josm.tools.Utils;23 23 24 24 /** 25 25 * A data set holding histories of OSM primitives. 26 * 27 * 26 * @since 1670 28 27 */ 29 28 public class HistoryDataSet implements LayerChangeListener{ … … 163 162 CheckParameterUtil.ensureParameterNotNull(pid, "pid"); 164 163 List<HistoryOsmPrimitive> versions = data.get(pid); 164 if (versions == null && pid instanceof IPrimitive) { 165 versions = data.get(((IPrimitive) pid).getPrimitiveId()); 166 } 165 167 if (versions == null) 166 168 return null;
Note:
See TracChangeset
for help on using the changeset viewer.