Changeset 18295 in osm for applications/editors


Ignore:
Timestamp:
2009-10-27T10:57:31+01:00 (15 years ago)
Author:
guggis
Message:

Updated to JOSM r2327

Location:
applications/editors/josm/plugins/remotecontrol
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/remotecontrol/build.xml

    r18144 r18295  
    2626                <attribute name="Plugin-Description" value="Let other applications send commands to JOSM."/>
    2727                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/RemoteControl"/>
    28                 <attribute name="Plugin-Mainversion" value="2263"/>
     28                <attribute name="Plugin-Mainversion" value="2327"/>
    2929                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3030            </manifest>
  • applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java

    r17858 r18295  
    1919import java.util.HashSet;
    2020import java.util.StringTokenizer;
     21import java.util.concurrent.Future;
    2122
    2223import javax.swing.JOptionPane;
     
    2526import org.openstreetmap.josm.actions.AutoScaleAction;
    2627import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask;
     28import org.openstreetmap.josm.actions.downloadtasks.DownloadTask;
     29import org.openstreetmap.josm.actions.downloadtasks.PostDownloadHandler;
    2730import org.openstreetmap.josm.command.AddCommand;
    2831import org.openstreetmap.josm.data.Bounds;
     
    3437import org.openstreetmap.josm.data.osm.Way;
    3538import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    36 import org.openstreetmap.josm.gui.download.DownloadDialog.DownloadTask;
    3739import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor;
    3840
     
    165167                        maxlon = downloadBounds.getMaxX();
    166168                    }
    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));                   
    168171                } catch (AlreadyLoadedException ex) {
    169172                    System.out.println("RemoteControl: no download necessary");
Note: See TracChangeset for help on using the changeset viewer.