Changeset 13932 in josm


Ignore:
Timestamp:
2018-06-14T19:38:30+02:00 (6 years ago)
Author:
Don-vip
Message:

see #11000 - restore old (deprecated) method signatures to avoid plugins breakage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java

    r13929 r13932  
    7777    }
    7878
     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
    7995    @Override
    8096    public Future<?> download(DownloadParams settings, Bounds downloadArea, ProgressMonitor progressMonitor) {
    8197        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);
    82115    }
    83116
     
    117150     * @param progressMonitor the progressMonitor
    118151     * @return the future representing the asynchronous task
     152     * @since 13927
    119153     */
    120154    public Future<?> download(OsmServerReader reader, DownloadParams settings, Bounds downloadArea, ProgressMonitor progressMonitor) {
Note: See TracChangeset for help on using the changeset viewer.