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

Last change on this file since 2667 was 2323, checked in by Gubaer, 14 years ago

Added explicit help topics
See also current list of help topics with links to source files and to help pages

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.