Changeset 16324 in josm
- Timestamp:
- 2020-04-17T21:04:57+02:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io/remotecontrol
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControl.java
r15469 r16324 32 32 */ 33 33 static final int protocolMajorVersion = 1; 34 static final int protocolMinorVersion = 8;34 static final int protocolMinorVersion = 9; 35 35 36 36 /** -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/ImportHandler.java
r16006 r16324 49 49 } 50 50 } 51 LoadAndZoomHandler.parseChangesetTags(args); 51 52 } catch (RuntimeException ex) { // NOPMD 52 53 Logging.warn("RemoteControl: Error parsing import remote control request:"); … … 63 64 @Override 64 65 public String[] getOptionalParams() { 65 return new String[] {"new_layer", "layer_name", "layer_locked", "download_policy", "upload_policy" };66 return new String[] {"new_layer", "layer_name", "layer_locked", "download_policy", "upload_policy", "changeset_tags"}; 66 67 } 67 68 -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java
r16142 r16324 10 10 import java.util.Collections; 11 11 import java.util.LinkedHashSet; 12 import java.util.Map; 12 13 import java.util.Set; 13 14 import java.util.concurrent.Future; … … 226 227 227 228 // This comes before the other changeset tags, so that they can be overridden 228 if (args.containsKey("changeset_tags")) { 229 MainApplication.worker.submit(() -> { 230 DataSet ds = MainApplication.getLayerManager().getEditDataSet(); 231 if (ds != null) { 232 for (String[] key : AddTagsDialog.parseUrlTagsToKeyValues(args.get("changeset_tags"))) { 233 ds.addChangeSetTag(key[0], key[1]); 234 } 235 } 236 }); 237 } 229 parseChangesetTags(args); 238 230 239 231 // add changeset tags after download if necessary … … 272 264 } 273 265 266 static void parseChangesetTags(Map<String, String> args) { 267 if (args.containsKey("changeset_tags")) { 268 MainApplication.worker.submit(() -> { 269 DataSet ds = MainApplication.getLayerManager().getEditDataSet(); 270 if (ds != null) { 271 for (String[] key : AddTagsDialog.parseUrlTagsToKeyValues(args.get("changeset_tags"))) { 272 ds.addChangeSetTag(key[0], key[1]); 273 } 274 } 275 }); 276 } 277 } 278 274 279 protected void zoom(Collection<OsmPrimitive> primitives, final Bounds bbox) { 275 280 if (!PermissionPrefWithDefault.CHANGE_VIEWPORT.isAllowed()) {
Note:
See TracChangeset
for help on using the changeset viewer.