Changeset 13932 in josm
- Timestamp:
- 2018-06-14T19:38:30+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
r13929 r13932 77 77 } 78 78 79 /** 80 * Asynchronously launches the download task for a given bounding box. 81 * @param newLayer true, if the data is to be downloaded into a new layer. If false, the task 82 * selects one of the existing layers as download layer, preferably the active layer. 83 * 84 * @param downloadArea the area to download 85 * @param progressMonitor the progressMonitor 86 * @return the future representing the asynchronous task 87 * @deprecated Use {@link #download(DownloadParams, Bounds, ProgressMonitor)} 88 */ 89 @Deprecated 90 public Future<?> download(boolean newLayer, Bounds downloadArea, ProgressMonitor progressMonitor) { 91 return download(new BoundingBoxDownloader(downloadArea), 92 new DownloadParams().withNewLayer(newLayer), downloadArea, progressMonitor); 93 } 94 79 95 @Override 80 96 public Future<?> download(DownloadParams settings, Bounds downloadArea, ProgressMonitor progressMonitor) { 81 97 return download(new BoundingBoxDownloader(downloadArea), settings, downloadArea, progressMonitor); 98 } 99 100 /** 101 * Asynchronously launches the download task for a given bounding box. 102 * 103 * @param reader the reader used to parse OSM data (see {@link OsmServerReader#parseOsm}) 104 * @param newLayer newLayer true, if the data is to be downloaded into a new layer. If false, the task 105 * selects one of the existing layers as download layer, preferably the active layer. 106 * @param downloadArea the area to download 107 * @param progressMonitor the progressMonitor 108 * @return the future representing the asynchronous task 109 * @deprecated Use {@link #download(OsmServerReader, DownloadParams, Bounds, ProgressMonitor)} 110 */ 111 @Deprecated 112 public Future<?> download(OsmServerReader reader, boolean newLayer, Bounds downloadArea, ProgressMonitor progressMonitor) { 113 return download(new DownloadTask(new DownloadParams().withNewLayer(newLayer), reader, progressMonitor, zoomAfterDownload), 114 downloadArea); 82 115 } 83 116 … … 117 150 * @param progressMonitor the progressMonitor 118 151 * @return the future representing the asynchronous task 152 * @since 13927 119 153 */ 120 154 public Future<?> download(OsmServerReader reader, DownloadParams settings, Bounds downloadArea, ProgressMonitor progressMonitor) {
Note:
See TracChangeset
for help on using the changeset viewer.