Skip to content

Commit 0c4a889

Browse files
committed
add shortcut parsing hints
1 parent a04618b commit 0c4a889

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/main/java/org/openstreetmap/josm/plugins/mapillary/gui/ImageColorPicker.java

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public ImageColorPicker() {
6868
colorPanel.setPreferredSize(new Dimension(COLOR_AREA, COLOR_AREA));
6969
tempColorPanel.setPreferredSize(new Dimension(COLOR_AREA, COLOR_AREA));
7070

71+
/* SHORTCUT(Mapillary: Copy color, mapillary:copy_to_clipboard_Copy_color, CHAR_UNDEFINED, NONE) */
7172
copyAction = new ClipboardAction(tr("Copy color"), tr("Copied color to clipboard"), null);
7273
final MapillaryButton copyButton = new MapillaryButton(copyAction, true);
7374
copyAction.setPopupParent(copyButton);

src/main/java/org/openstreetmap/josm/plugins/mapillary/gui/imageinfo/ClipboardAction.java

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public class ClipboardAction extends MapillaryAction {
6464
public ClipboardAction(final String name, final String successMessage, final Transferable contents) {
6565
super(tr(name), "copy", tr("Copy {0} to clipboard", tr(name)),
6666
Shortcut.registerShortcut("mapillary:copy_to_clipboard_" + name.replace(' ', '_'),
67+
/* NO-SHORTCUT - add definition in classes using ClipboardAction */
6768
tr("Mapillary: {0}", tr(name)), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE),
6869
false, "mapillary:copy_to_clipboard_" + name.replace(' ', '_'), false);
6970
this.contents = contents;

src/main/java/org/openstreetmap/josm/plugins/mapillary/gui/imageinfo/ImageInfoPanel.java

+2
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,12 @@ private ImageInfoPanel() {
122122

123123
imgLinkAction = new WebLinkAction(marktr("View in browser"), null);
124124

125+
/* SHORTCUT(Mapillary: Copy URL, mapillary:copy_to_clipboard_Copy_URL, CHAR_UNDEFINED, NONE) */
125126
copyImgUrlAction = new ClipboardAction(marktr("Copy URL"), tr("Copied URL to clipboard …"), null);
126127
final var copyUrlButton = new MapillaryButton(copyImgUrlAction, true);
127128
copyImgUrlAction.setPopupParent(copyUrlButton);
128129

130+
/* SHORTCUT(Mapillary: Copy key, mapillary:copy_to_clipboard_Copy_key, CHAR_UNDEFINED, NONE) */
129131
copyImgKeyAction = new ClipboardAction(marktr("Copy key"), tr("Copied key to clipboard …"), null);
130132
final var copyKeyButton = new MapillaryButton(copyImgKeyAction, true);
131133
copyImgKeyAction.setPopupParent(copyKeyButton);

0 commit comments

Comments
 (0)