- Timestamp:
- 2020-11-23T16:47:41+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r16628 r17335 84 84 */ 85 85 public OpenLocationAction() { 86 this(Shortcut.registerShortcut("system:open_location", tr("File: {0}", tr("Open Location...")), KeyEvent.VK_L, Shortcut.CTRL)); 87 } 88 89 /** 90 * Create an open action. The name is "Open a file". 91 * @param shortcut action shortcut, can be null for subclasses 92 */ 93 protected OpenLocationAction(Shortcut shortcut) { 86 94 /* I18N: Command to download a specific location/URL */ 87 super(tr("Open Location..."), "openlocation", tr("Open an URL."), 88 Shortcut.registerShortcut("system:open_location", tr("File: {0}", tr("Open Location...")), 89 KeyEvent.VK_L, Shortcut.CTRL), true, false); 95 super(tr("Open Location..."), "openlocation", tr("Open an URL."), shortcut, shortcut != null, false); 90 96 setHelpId(ht("/Action/OpenLocation")); 91 97 this.downloadTasks = new ArrayList<>(); -
trunk/src/org/openstreetmap/josm/gui/datatransfer/importers/OsmLinkPaster.java
r11986 r17335 28 28 29 29 static final class NoWarnOpenLocationAction extends OpenLocationAction { 30 31 NoWarnOpenLocationAction() { 32 super(null); 33 } 34 30 35 @Override 31 36 protected void warnNoSuitableTasks(String url) {
Note:
See TracChangeset
for help on using the changeset viewer.