Changeset 13933 in josm


Ignore:
Timestamp:
2018-06-15T17:37:50+02:00 (6 years ago)
Author:
Don-vip
Message:

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

File:
1 edited

Legend:

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

    r13932 r13933  
    399399        /**
    400400         * Constructs a new {@code DownloadTask}.
     401         * @param newLayer if {@code true}, force download to a new layer
     402         * @param reader OSM data reader
     403         * @param progressMonitor progress monitor
     404         * @deprecated Use {@link #DownloadTask(DownloadParams, OsmServerReader, ProgressMonitor)}
     405         */
     406        @Deprecated
     407        public DownloadTask(boolean newLayer, OsmServerReader reader, ProgressMonitor progressMonitor) {
     408            this(new DownloadParams().withNewLayer(newLayer), reader, progressMonitor);
     409        }
     410
     411        /**
     412         * Constructs a new {@code DownloadTask}.
     413         * @param newLayer if {@code true}, force download to a new layer
     414         * @param reader OSM data reader
     415         * @param progressMonitor progress monitor
     416         * @param zoomAfterDownload If true, the map view will zoom to download area after download
     417         * @deprecated Use {@link #DownloadTask(DownloadParams, OsmServerReader, ProgressMonitor, boolean)}
     418         */
     419        @Deprecated
     420        public DownloadTask(boolean newLayer, OsmServerReader reader, ProgressMonitor progressMonitor, boolean zoomAfterDownload) {
     421            this(new DownloadParams().withNewLayer(newLayer), reader, progressMonitor, zoomAfterDownload);
     422        }
     423
     424        /**
     425         * Constructs a new {@code DownloadTask}.
    401426         * @param settings download settings
    402427         * @param reader OSM data reader
Note: See TracChangeset for help on using the changeset viewer.