|Overriding default Editor drag-and-drop [message #1769725]
||Wed, 02 August 2017 22:29
| Chris Mamorella
Registered: June 2013
I have already subclassed DDiagramEditorImpl. Now I'd like to override the drop target listener to handle specific drag events. Unfortunately the existing drop target listener in DDiagramEditor is private:|
private AbstractTransferDropTargetListener transferDropTargetListener;
...so the best I can seemingly do is add my custom drop target listener to the graphical viewer in addition to the privately declared listener.
Everything appears to get initialized but my custom transfer drop target listener never seems to be invoked during drop events. Specifically, the #createTargetRequest method is never called. I'm assuming that's the method that should be activated.
Do I need to somehow remove the private drop target listener? Not sure where to go from here.
[Updated on: Wed, 02 August 2017 22:30]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01264 seconds