Changeset 18295 in osm for applications
- Timestamp:
- 2009-10-27T10:57:31+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/remotecontrol
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/remotecontrol/build.xml
r18144 r18295 26 26 <attribute name="Plugin-Description" value="Let other applications send commands to JOSM."/> 27 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/RemoteControl"/> 28 <attribute name="Plugin-Mainversion" value="2 263"/>28 <attribute name="Plugin-Mainversion" value="2327"/> 29 29 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 30 30 </manifest> -
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.