Changeset 10848 in josm
- Timestamp:
- 2016-08-18T21:35:10+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadOsmInViewAction.java
r10816 r10848 11 11 import org.openstreetmap.josm.actions.downloadtasks.PostDownloadHandler; 12 12 import org.openstreetmap.josm.data.Bounds; 13 import org.openstreetmap.josm.io.BoundingBoxDownloader; 13 14 import org.openstreetmap.josm.io.OnlineResource; 14 15 … … 31 32 public void actionPerformed(ActionEvent e) { 32 33 final Bounds bounds = Main.map.mapView.getRealBounds(); 33 DownloadOsm Task task = new DownloadOsmTask();34 Future<?> future = task.download( false, bounds, null);34 DownloadOsmInViewTask task = new DownloadOsmInViewTask(); 35 Future<?> future = task.download(bounds); 35 36 Main.worker.submit(new PostDownloadHandler(task, future)); 36 37 } … … 41 42 && !Main.isOffline(OnlineResource.OSM_API)); 42 43 } 44 45 private static class DownloadOsmInViewTask extends DownloadOsmTask { 46 public Future<?> download(Bounds downloadArea) { 47 return download(new DownloadTask(false, new BoundingBoxDownloader(downloadArea), null, false), downloadArea); 48 } 49 } 43 50 }
Note:
See TracChangeset
for help on using the changeset viewer.