Changeset 34306 in osm for applications/editors/josm/plugins/imagery-xml-bounds/src
- Timestamp:
- 2018-06-17T11:37:29+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/downloadtask/DownloadXmlBoundsTask.java
r34076 r34306 7 7 8 8 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; 9 import org.openstreetmap.josm.actions.downloadtasks.DownloadParams; 9 10 import org.openstreetmap.josm.data.Bounds; 10 11 import org.openstreetmap.josm.gui.MainApplication; … … 23 24 24 25 @Override 25 public Future<?> download( boolean newLayer, Bounds downloadArea,26 public Future<?> download(DownloadParams settings, Bounds downloadArea, 26 27 ProgressMonitor progressMonitor) { 27 28 return null; … … 29 30 30 31 @Override 31 public Future<?> loadUrl( boolean newLayer, String url,32 public Future<?> loadUrl(DownloadParams settings, String url, 32 33 ProgressMonitor progressMonitor) { 33 downloadTask = new InternalDownloadTask( newLayer,34 downloadTask = new InternalDownloadTask(settings, 34 35 new JosmServerLocationReader(url), progressMonitor); 35 36 // We need submit instead of execute so we can wait for it to finish and get the error … … 55 56 /** 56 57 * Constructs a new {@code DownloadTask}. 57 * @param newLayer if {@code true},downloadto a new layer58 * @param settings download settings 58 59 * @param reader server reader 59 60 * @param progressMonitor progress monitor 60 61 */ 61 public InternalDownloadTask( boolean newLayer, OsmServerReader reader, ProgressMonitor progressMonitor) {62 super( newLayer, reader, progressMonitor);62 public InternalDownloadTask(DownloadParams settings, OsmServerReader reader, ProgressMonitor progressMonitor) { 63 super(settings, reader, progressMonitor); 63 64 } 64 65
Note:
See TracChangeset
for help on using the changeset viewer.