Changeset 16589 in osm for applications/editors/josm/plugins/remotecontrol
- Timestamp:
- 2009-07-19T19:30:14+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/remotecontrol
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/remotecontrol/build.xml
r16290 r16589 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="1 722"/>28 <attribute name="Plugin-Mainversion" value="1813"/> 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/RemoteControlPlugin.java
r13497 r16589 3 3 import java.io.IOException; 4 4 5 import org.openstreetmap.josm.Main;6 5 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 7 6 import org.openstreetmap.josm.plugins.Plugin; … … 10 9 11 10 */ 12 public class RemoteControlPlugin extends Plugin 11 public class RemoteControlPlugin extends Plugin 13 12 { 14 13 /** The HTTP server this plugin launches */ 15 14 static HttpServer server; 16 15 17 16 /** 18 17 * Creates the plugin, and starts the HTTP server … … 22 21 restartServer(); 23 22 } 24 23 25 24 @Override 26 public PreferenceSetting getPreferenceSetting() 25 public PreferenceSetting getPreferenceSetting() 27 26 { 28 27 return new RemoteControlPreferences(); 29 28 } 30 29 31 30 /** 32 31 * Starts or restarts the HTTP server … … 39 38 if (server != null) 40 39 server.stopServer(); 41 40 42 41 int port = HttpServer.DEFAULT_PORT; 43 42 server = new HttpServer(port); -
applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RemoteControlPreferences.java
r14991 r16589 5 5 import java.awt.Color; 6 6 import java.awt.GridBagLayout; 7 import java.awt.event.*;8 7 9 import javax.swing.*; 8 import javax.swing.BorderFactory; 9 import javax.swing.Box; 10 import javax.swing.JCheckBox; 11 import javax.swing.JLabel; 12 import javax.swing.JPanel; 10 13 11 14 import org.openstreetmap.josm.Main; … … 13 16 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 14 17 import org.openstreetmap.josm.tools.GBC; 15 import org.openstreetmap.josm.tools.I18n;16 18 17 19 /** -
applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java
r16290 r16589 5 5 import java.awt.geom.Area; 6 6 import java.awt.geom.Rectangle2D; 7 import java.io.*; 7 import java.io.BufferedInputStream; 8 import java.io.BufferedOutputStream; 9 import java.io.IOException; 10 import java.io.InputStreamReader; 11 import java.io.OutputStream; 12 import java.io.OutputStreamWriter; 13 import java.io.Reader; 14 import java.io.Writer; 8 15 import java.net.Socket; 9 16 import java.net.URLDecoder; … … 19 26 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; 20 27 import org.openstreetmap.josm.data.Bounds; 21 import org.openstreetmap.josm.data.coor.EastNorth;22 28 import org.openstreetmap.josm.data.coor.LatLon; 23 29 import org.openstreetmap.josm.data.osm.Node; … … 27 33 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 28 34 import org.openstreetmap.josm.gui.download.DownloadDialog.DownloadTask; 35 import org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor; 29 36 30 37 /** … … 37 44 38 45 private class AlreadyLoadedException extends Exception {}; 39 private class DeniedException extends Exception {};40 46 private class LoadDeniedException extends Exception {}; 41 47 … … 154 160 maxlon = downloadBounds.getMaxX(); 155 161 } 156 osmTask.download(null, minlat,minlon,maxlat,maxlon); 162 osmTask.download(null, minlat,minlon,maxlat,maxlon, new PleaseWaitProgressMonitor()); 157 163 } catch (AlreadyLoadedException ex) { 158 164 System.out.println("RemoteControl: no download necessary");
Note:
See TracChangeset
for help on using the changeset viewer.