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
|
Rev | Line | |
---|
[6380] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
[626] | 2 | // Author: David Earl
|
---|
| 3 | package org.openstreetmap.josm.actions;
|
---|
| 4 |
|
---|
[2818] | 5 | import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
|
---|
[626] | 6 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
| 7 |
|
---|
| 8 | import java.awt.event.KeyEvent;
|
---|
| 9 |
|
---|
[12639] | 10 | import org.openstreetmap.josm.gui.MainApplication;
|
---|
[1084] | 11 | import org.openstreetmap.josm.tools.Shortcut;
|
---|
[626] | 12 |
|
---|
[5953] | 13 | /**
|
---|
| 14 | * Paste OSM primitives from clipboard to the current edit layer.
|
---|
| 15 | * @since 404
|
---|
| 16 | */
|
---|
[10766] | 17 | public final class PasteAction extends AbstractPasteAction {
|
---|
[626] | 18 |
|
---|
[5953] | 19 | /**
|
---|
| 20 | * Constructs a new {@code PasteAction}.
|
---|
| 21 | */
|
---|
[626] | 22 | public PasteAction() {
|
---|
[10766] | 23 | super(tr("Paste"), "paste", tr("Paste contents of clipboard."),
|
---|
[4982] | 24 | Shortcut.registerShortcut("system:paste", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_V, Shortcut.CTRL), true);
|
---|
[14397] | 25 | setHelpId(ht("/Action/Paste"));
|
---|
[6920] | 26 | // CUA shortcut for paste (https://en.wikipedia.org/wiki/IBM_Common_User_Access#Description)
|
---|
[12639] | 27 | MainApplication.registerActionShortcut(this,
|
---|
[6451] | 28 | Shortcut.registerShortcut("system:paste:cua", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_INSERT, Shortcut.SHIFT));
|
---|
[626] | 29 | }
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.