[josm-dev] JosmPlugin, Catching the DataDelete Event

2015-11-25 Thread Möller , Matthias
Hello, currently i'am working on a plugin for JOSM and i want to prevent the user from deleting special Nodes. So the Idea is to catch the Delete Event and display a warning(or a userchoise). I first looked into the Dataset and DatasetListener. But at the pont when I get the primitiesRemoved()

Re: [josm-dev] JosmPlugin, Catching the DataDelete Event

2015-11-25 Thread Paul Hartmann
On 25.11.2015 13:18, Möller, Matthias wrote: Hello, currently i'am working on a plugin for JOSM and i want to prevent the user from deleting special Nodes. So the Idea is to catch the Delete Event and display a warning(or a userchoise). Could you give a little more context, what the plugin

Re: [josm-dev] JosmPlugin, Catching the DataDelete Event

2015-11-25 Thread Michael Zangl
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