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

Last change on this file since 4139 was 4139, checked in by stoecker, 13 years ago

fix #6474 - fix toolbar action entries for some actions and fix fullscreen mode start

  • Property svn:eol-style set to native
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.tools.I18n.tr;
5
6import java.awt.event.KeyEvent;
7
8import org.openstreetmap.josm.Main;
9import org.openstreetmap.josm.data.osm.OsmPrimitive;
10import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
11import org.openstreetmap.josm.tools.Shortcut;
12import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
13
14public class HistoryInfoAction extends AbstractInfoAction {
15
16 public HistoryInfoAction() {
17 super(tr("Object history"), "about",
18 tr("Display history information about OSM ways, nodes, or relations."),
19 Shortcut.registerShortcut("core:history",
20 tr("Object history"), KeyEvent.VK_H, Shortcut.GROUP_HOTKEY), false);
21 putValue("help", ht("/Action/ObjectHistory"));
22 putValue("toolbar", "action/historyinfo");
23 Main.toolbar.register(this);
24 }
25
26 @Override
27 protected String createInfoUrl(Object infoObject) {
28 OsmPrimitive primitive = (OsmPrimitive)infoObject;
29 return getBaseBrowseUrl() + "/" + OsmPrimitiveType.from(primitive).getAPIName() + "/" + primitive.getId() + "/history";
30 }
31}
Note: See TracBrowser for help on using the repository browser.