Changeset 16124 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-03-14T20:37:18+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r15827 r16124 273 273 } 274 274 275 PleaseWaitProgressMonitor monitor = new PleaseWaitProgressMonitor(tr("Download data"));276 277 275 List<Future<?>> result = new ArrayList<>(); 278 276 for (final DownloadTask task : tasks) { 279 277 try { 280 278 task.setZoomAfterDownload(zoomToData); 281 result.add(MainApplication.worker.submit(new PostDownloadHandler(task, task.loadUrl(settings, url, monitor)))); 279 result.add(MainApplication.worker.submit(new PostDownloadHandler(task, task.loadUrl(settings, url, 280 new PleaseWaitProgressMonitor(tr("Download data")))))); 282 281 } catch (IllegalArgumentException e) { 283 282 Logging.error(e); -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r14936 r16124 138 138 public final void run() { 139 139 if (EventQueue.isDispatchThread()) { 140 new Thread( (Runnable)this::doRealRun, getClass().getName()).start();140 new Thread(this::doRealRun, getClass().getName()).start(); 141 141 } else { 142 142 doRealRun();
Note:
See TracChangeset
for help on using the changeset viewer.