Changeset 7859 in josm for trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
- Timestamp:
- 2014-12-20T16:00:06+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r7749 r7859 55 55 /* I18N: Command to download a specific location/URL */ 56 56 super(tr("Open Location..."), "openlocation", tr("Open an URL."), 57 Shortcut.registerShortcut("system:open_location", tr("File: {0}", tr("Open Location...")), KeyEvent.VK_L, Shortcut.CTRL), true); 57 Shortcut.registerShortcut("system:open_location", tr("File: {0}", tr("Open Location...")), 58 KeyEvent.VK_L, Shortcut.CTRL), true); 58 59 putValue("help", ht("/Action/OpenLocation")); 59 60 this.downloadTasks = new ArrayList<>(); … … 74 75 */ 75 76 protected void restoreUploadAddressHistory(HistoryComboBox cbHistory) { 76 List<String> cmtHistory = new LinkedList<>(Main.pref.getCollection(getClass().getName() + ".uploadAddressHistory", new LinkedList<String>())); 77 List<String> cmtHistory = new LinkedList<>(Main.pref.getCollection(getClass().getName() + ".uploadAddressHistory", 78 new LinkedList<String>())); 77 79 // we have to reverse the history, because ComboBoxHistory will reverse it again in addElement() 78 80 // … … 175 177 /** 176 178 * Open the given URL. 177 * @param new _layer true if the URL needs to be opened in a new layer, false otherwise179 * @param newLayer true if the URL needs to be opened in a new layer, false otherwise 178 180 * @param url The URL to open 179 181 */ 180 public void openUrl(boolean new _layer, final String url) {182 public void openUrl(boolean newLayer, final String url) { 181 183 PleaseWaitProgressMonitor monitor = new PleaseWaitProgressMonitor(tr("Download Data")); 182 184 Collection<DownloadTask> tasks = findDownloadTasks(url, false); … … 187 189 try { 188 190 task = tasks.iterator().next(); 189 future = task.loadUrl(new _layer, url, monitor);191 future = task.loadUrl(newLayer, url, monitor); 190 192 } catch (IllegalArgumentException e) { 191 193 Main.error(e);
Note:
See TracChangeset
for help on using the changeset viewer.