Hi Gerd,
thanks for your reply. I had feared as much, because I just didn't find
anything like a PostUploadHandler or the likes.
BUT I got it to work nonetheless:
1. implemented DataSetListener
2. In @Override public void
otherDatasetChange(AbstractDatasetChangedEvent event) asked if
(event.getType() ==
AbstractDatasetChangedEvent.DatasetEventType.CHANGESET_ID_CHANGED)
Now I am able to accomplish the rest of everything I wanted ... If I'm
able to task a note upload from code, but I'll find that out next thing :)
Kai
On 08.05.2020 23:28, Gerd Petermann wrote:
> Hi Kai,
>
> The cs id is returned by the api when the changeset is opened, but the hooks
> are called before that, so I see no way to get the cs id with the current
> code in core.
>
> Gerd
>
>
> Von: Kai Michael Poppe - OSM
> Gesendet: Freitag, 8. Mai 2020 23:05
> An: josm-dev@openstreetmap.org
> Betreff: JOSM Plugin / Do something after upload of changed data
>
> Hi list,
>
> I'm currently building a Plugin that's supposed resolve upload a note
> with a reference to the changeset that was created through the upload.
>
> I've successfully managed to get the UploadHook working and put the
> reference to the Note in the Changeset comment, but I can't figure out
> how to find the Changeset ID that was created. Is there any interface I
> can implement to do this in the Plugin namespace?
>
> Thanks for helping out a plugin noob!
>
> Kai
>
>