- Timestamp:
- 2016-11-19T14:43:38+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r11279 r11286 199 199 * Open the given URL. This class checks the {@link #USE_NEW_LAYER} preference to check if a new layer should be used. 200 200 * @param url The URL to open 201 * @return <code>true</code> if loading the task was started successfully. 201 * @return <code>true</code> if at least one task was started successfully. 202 * @since 11279 202 203 */ 203 204 public boolean openUrl(String url) { … … 217 218 PleaseWaitProgressMonitor monitor = new PleaseWaitProgressMonitor(tr("Download Data")); 218 219 220 boolean hadAnySuccess = false; 219 221 for (final DownloadTask task : tasks) { 220 222 try { 221 223 Future<?> future = task.loadUrl(newLayer, url, monitor); 222 224 Main.worker.submit(new PostDownloadHandler(task, future)); 223 returntrue;225 hadAnySuccess = true; 224 226 } catch (IllegalArgumentException e) { 225 227 Main.error(e); 226 228 } 227 229 } 228 return false;230 return hadAnySuccess; 229 231 } 230 232
Note:
See TracChangeset
for help on using the changeset viewer.