source: josm/trunk/src/org/openstreetmap/josm/actions/HistoryInfoAction.java@ 3718

Last change on this file since 3718 was 3083, checked in by bastiK, 14 years ago

added svn:eol-style=native to source files

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1//License: GPL. Copyright 2007 by Immanuel Scholz and others
2package org.openstreetmap.josm.actions;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import java.awt.event.KeyEvent;
7
8import org.openstreetmap.josm.data.osm.OsmPrimitive;
9import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
10import org.openstreetmap.josm.tools.Shortcut;
11import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
12
13public class HistoryInfoAction extends AbstractInfoAction {
14
15 public HistoryInfoAction() {
16 super(tr("Object history"), "about",
17 tr("Display history information about OSM ways, nodes, or relations."),
18 Shortcut.registerShortcut("core:history",
19 tr("Object history"), KeyEvent.VK_H, Shortcut.GROUP_HOTKEY), true);
20 putValue("help", ht("/Action/HistoryInfo"));
21 }
22
23 @Override
24 protected String createInfoUrl(Object infoObject) {
25 OsmPrimitive primitive = (OsmPrimitive)infoObject;
26 return getBaseBrowseUrl() + "/" + OsmPrimitiveType.from(primitive).getAPIName() + "/" + primitive.getId() + "/history";
27 }
28}
Note: See TracBrowser for help on using the repository browser.