Last change
on this file since 14397 was 14397, checked in by Don-vip, 6 years ago |
fix #16935 - simplify/cleanup help topics of ToggleDialog/ToggleDialogAction
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | // Author: David Earl
|
---|
3 | package org.openstreetmap.josm.actions;
|
---|
4 |
|
---|
5 | import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
|
---|
6 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
7 |
|
---|
8 | import java.awt.event.KeyEvent;
|
---|
9 |
|
---|
10 | import org.openstreetmap.josm.gui.MainApplication;
|
---|
11 | import org.openstreetmap.josm.tools.Shortcut;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Paste OSM primitives from clipboard to the current edit layer.
|
---|
15 | * @since 404
|
---|
16 | */
|
---|
17 | public final class PasteAction extends AbstractPasteAction {
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * Constructs a new {@code PasteAction}.
|
---|
21 | */
|
---|
22 | public PasteAction() {
|
---|
23 | super(tr("Paste"), "paste", tr("Paste contents of clipboard."),
|
---|
24 | Shortcut.registerShortcut("system:paste", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_V, Shortcut.CTRL), true);
|
---|
25 | setHelpId(ht("/Action/Paste"));
|
---|
26 | // CUA shortcut for paste (https://en.wikipedia.org/wiki/IBM_Common_User_Access#Description)
|
---|
27 | MainApplication.registerActionShortcut(this,
|
---|
28 | Shortcut.registerShortcut("system:paste:cua", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_INSERT, Shortcut.SHIFT));
|
---|
29 | }
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.