source: josm/trunk/src/org/openstreetmap/josm/actions/HistoryInfoWebAction.java@ 6258

Last change on this file since 6258 was 5926, checked in by bastiK, 11 years ago

clean up imports

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