Changeset 16142 in josm for trunk/src/org
- Timestamp:
- 2020-03-15T20:50:44+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java
r15482 r16142 9 9 import java.util.Collection; 10 10 import java.util.Collections; 11 import java.util. HashSet;11 import java.util.LinkedHashSet; 12 12 import java.util.Set; 13 13 import java.util.concurrent.Future; … … 65 65 66 66 // Optional argument 'select' 67 private final Set<SimplePrimitiveId> toSelect = new HashSet<>();67 private final Set<SimplePrimitiveId> toSelect = new LinkedHashSet<>(); 68 68 69 69 private boolean isKeepingCurrentSelection; … … 175 175 } 176 176 177 final Collection<OsmPrimitive> forTagAdd = new HashSet<>();177 final Collection<OsmPrimitive> forTagAdd = new LinkedHashSet<>(); 178 178 final Bounds bbox = new Bounds(minlat, minlon, maxlat, maxlon); 179 179 if (args.containsKey("select") && PermissionPrefWithDefault.CHANGE_SELECTION.isAllowed()) { 180 180 // select objects after downloading, zoom to selection. 181 181 GuiHelper.executeByMainWorkerInEDT(() -> { 182 Set<OsmPrimitive> newSel = new HashSet<>();182 Set<OsmPrimitive> newSel = new LinkedHashSet<>(); 183 183 DataSet ds = MainApplication.getLayerManager().getEditDataSet(); 184 184 if (ds == null) // e.g. download failed
Note:
See TracChangeset
for help on using the changeset viewer.