Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private ImageInfoPanel() {

imgKeyValue = new HtmlPanel();

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

/* SHORTCUT(Mapillary: Copy URL, mapillary:copy_to_clipboard_Copy_URL, CHAR_UNDEFINED, NONE) */
copyImgUrlAction = new ClipboardAction(marktr("Copy URL"), tr("Copied URL to clipboard …"), null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,12 @@ public class WebLinkAction extends MapillaryAction {

/**
* Create a new action
*
* @param name The name to show users (use {@link I18n#marktr(String)})
* @param uri The original URI to open
*/
public WebLinkAction(final String name, final URI uri) {
super(tr(name), "link", tr("Open in browser"),
Shortcut.registerShortcut("mapillary:open_in_browser_" + name.replace(' ', '_'),
tr("Mapillary: Open {0} in browser", tr(name)), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE),
false, "mapillary:open_in_browser_" + name.replace(' ', '_'), false);
setURI(uri);
public WebLinkAction() {
super(tr("View in browser"), "link", tr("Open in browser"),
Shortcut.registerShortcut("mapillary:open_in_browser_View_in_browser",
tr("Mapillary: Open {0} in browser", tr("View in browser")), KeyEvent.CHAR_UNDEFINED, Shortcut.NONE),
false, "mapillary:open_in_browser_View_in_browser", false);
}

/**
Expand Down
Loading