[josm-dev] JosmPlugin, Catching the DataDelete Event
Michael Zangl
openstreetmap at michael.fam-zangl.net
Wed Nov 25 13:06:30 UTC 2015
Am 25.11.2015 um 13:55 schrieb Paul Hartmann:
>
> The cleanest solution is to patch JOSM core so your plugin can intercept
> the delete action. (Similar to DatasetListener, but the "listener"
> returns a boolean value which tells JOSM to continue or abort the delete
> action.)
An even cleaner way would be to pass an Event-Object with a
cancel()-method on to the listener. This would allow for more additions
- both parameters and return values - in the future without breaking the
API.
Michael
More information about the josm-dev
mailing list