Changeset 6792 in josm for trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java
- Timestamp:
- 2014-01-31T02:44:56+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java
r6674 r6792 19 19 import org.openstreetmap.josm.data.osm.BBox; 20 20 import org.openstreetmap.josm.data.osm.DataSet; 21 import org.openstreetmap.josm.data.osm.Node;22 21 import org.openstreetmap.josm.data.osm.OsmPrimitive; 23 22 import org.openstreetmap.josm.data.osm.Relation; 24 23 import org.openstreetmap.josm.data.osm.SimplePrimitiveId; 25 import org.openstreetmap.josm.data.osm.Way;26 24 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 27 25 import org.openstreetmap.josm.gui.util.GuiHelper; … … 35 33 */ 36 34 public class LoadAndZoomHandler extends RequestHandler { 37 35 38 36 /** 39 37 * The remote control command name used to load data and zoom. … … 53 51 54 52 // Optional argument 'select' 55 private final HashSet<SimplePrimitiveId> toSelect = new HashSet<SimplePrimitiveId>();53 private final Set<SimplePrimitiveId> toSelect = new HashSet<SimplePrimitiveId>(); 56 54 57 55 @Override … … 84 82 return getUsageExamples(myCommand); 85 83 } 86 84 87 85 @Override 88 86 public String[] getUsageExamples(String cmd) { … … 163 161 @Override 164 162 public void run() { 165 HashSet<OsmPrimitive> newSel = new HashSet<OsmPrimitive>();163 Set<OsmPrimitive> newSel = new HashSet<OsmPrimitive>(); 166 164 DataSet ds = Main.main.getCurrentDataSet(); 167 165 if(ds == null) // e.g. download failed … … 249 247 throw new RequestHandlerBadRequestException("NumberFormatException ("+e.getMessage()+")"); 250 248 } 251 249 252 250 // Current API 0.6 check: "The latitudes must be between -90 and 90" 253 251 if (!LatLon.isValidLat(minlat) || !LatLon.isValidLat(maxlat)) {
Note:
See TracChangeset
for help on using the changeset viewer.