Changeset 18295 in osm for applications/editors/josm/plugins/remotecontrol/src/org
- Timestamp:
- 2009-10-27T10:57:31+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java
r17858 r18295 19 19 import java.util.HashSet; 20 20 import java.util.StringTokenizer; 21 import java.util.concurrent.Future; 21 22 22 23 import javax.swing.JOptionPane; … … 25 26 import org.openstreetmap.josm.actions.AutoScaleAction; 26 27 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; 28 import org.openstreetmap.josm.actions.downloadtasks.DownloadTask; 29 import org.openstreetmap.josm.actions.downloadtasks.PostDownloadHandler; 27 30 import org.openstreetmap.josm.command.AddCommand; 28 31 import org.openstreetmap.josm.data.Bounds; … … 34 37 import org.openstreetmap.josm.data.osm.Way; 35 38 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 36 import org.openstreetmap.josm.gui.download.DownloadDialog.DownloadTask;37 39 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor; 38 40 … … 165 167 maxlon = downloadBounds.getMaxX(); 166 168 } 167 osmTask.download(null, minlat,minlon,maxlat,maxlon, new PleaseWaitProgressMonitor()); 169 Future<?> future = osmTask.download(false /*no new layer*/, new Bounds(minlat,minlon,maxlat,maxlon), new PleaseWaitProgressMonitor()); 170 Main.worker.submit(new PostDownloadHandler(osmTask, future)); 168 171 } catch (AlreadyLoadedException ex) { 169 172 System.out.println("RemoteControl: no download necessary");
Note:
See TracChangeset
for help on using the changeset viewer.