239 | | AddTagsDialog.addTags(args, sender, forTagAdd); |
| 239 | // needs to run in EDT since forTagAdd is updated in EDT as well |
| 240 | GuiHelper.executeByMainWorkerInEDT(() -> { |
| 241 | if (forTagAdd.size() > 0) { |
| 242 | AddTagsDialog.addTags(args, sender, forTagAdd); |
| 243 | } else if (isKeepingCurrentSelection && args.containsKey("addtags")) { |
| 244 | // TODO: see #15707, display error message: |
| 245 | // You clicked on a JOSM remotecontrol link that would apply tags onto selected objects. |
| 246 | // Since no objects were selected, no tags were added. Select one or more objects and click the link again. |
| 247 | Logging.warn("RemoteControl: addtags= is set, but forTagAdd is empty (isKeepingCurrentSelection is set)"); |
| 248 | } else if (!isKeepingCurrentSelection && args.containsKey("addtags")) { |
| 249 | // TODO: see #15707, display error message: |
| 250 | // You clicked on a JOSM remotecontrol link that would apply tags onto selected objects. |
| 251 | // This link seems to be broken due to an invalid value of the query parameter 'select='. |
| 252 | // Ask at the source of the link if it can be fixed. |
| 253 | Logging.warn("RemoteControl: addtags= is set, but forTagAdd is empty (isKeepingCurrentSelection is not set)"); |
| 254 | } |
| 255 | }); |
| 256 | |