|Drag&Drop into an empty MPartStack [message #1225792]
||Mon, 30 December 2013 20:16
| Andriy Fomenko
Registered: May 2013
My window layout is divided into a left ("resource") part and a MPartStack on the right, where I want to create a part dynamically in response to Drag&Drop from the tree in left part.|
I have no problem placing a Part with an additional View into the MPartStack on the right side and enabling a DropTargetListener there.
The problem I'm trying to solve is to respond to a Drop event when my MPartStack on the right side is empty: in essense, I want to create individual viewers for the resources dragged from the left panel.
My idea was to create an add-on, which would find MPartStack by its ID and would attach a DropTargetListener there, but I can not find how to get a "Control" for the MPartStack I have.
Any suggestions on how to approach this problem a "proper way" ?
[Updated on: Mon, 30 December 2013 20:17]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01738 seconds