Last change
on this file since 2025 was 2025, checked in by Gubaer, 15 years ago |
new: improved dialog for uploading/saving modified layers on exit
new: improved dialog for uploading/saving modified layers if layers are deleted
new: new progress monitor which can delegate rendering to any Swing component
more setters/getters for properties in OSM data classes (fields are @deprecated); started to update references in the code base
|
File size:
944 bytes
|
Line | |
---|
1 | //License: GPL. Copyright 2007 by Immanuel Scholz and others
|
---|
2 | package org.openstreetmap.josm.actions;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import java.awt.event.KeyEvent;
|
---|
7 |
|
---|
8 | import org.openstreetmap.josm.data.osm.OsmPrimitive;
|
---|
9 | import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
|
---|
10 | import org.openstreetmap.josm.tools.Shortcut;
|
---|
11 |
|
---|
12 | public class InfoAction extends AbstractInfoAction {
|
---|
13 |
|
---|
14 | public InfoAction() {
|
---|
15 | super(tr("Info about Element"), "about",
|
---|
16 | tr("Display object information about OSM nodes, ways, or relations."),
|
---|
17 | Shortcut.registerShortcut("core:information",
|
---|
18 | tr("Info about Element"), KeyEvent.VK_I, Shortcut.GROUP_HOTKEY), true);
|
---|
19 | }
|
---|
20 |
|
---|
21 | @Override
|
---|
22 | protected String createInfoUrl(OsmPrimitive primitive) {
|
---|
23 | return getBaseURL() + "/" + OsmPrimitiveType.from(primitive).getAPIName() + "/" + primitive.getId();
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.