How to register Connection Edit Part as Drop Target [message #996960] |
Thu, 03 January 2013 09:42  |
Eclipse User |
|
|
|
Hi,
In my project we are using GMF for building workflow editor. We have requirement that when user drags some existing node to any of the existing connection, the connection should be split.
For example
Node A ----> Node B
if user drags existing Node C on connection, it should be like.
Node A ----> Node C ----> Node B.
I want to know, how can I register for DropTargetEvent on connection so that when I drop any Node on Connection Edit Part I am notified.
I tried adding DropTargetListner on connection but it didn't work. Any help would be appreciated.
|
|
|
|
Re: How to register Connection Edit Part as Drop Target [message #997391 is a reply to message #997382] |
Mon, 07 January 2013 09:37  |
Eclipse User |
|
|
|
Thanks for the reply.
Yes I tried installing edit policy but that doesn't work. I installed Drag Drop Edit Policy for connection edit part, but when I drop any node on connection edit part it doesn't generate REQ_DROP kind of events. I always get TOGGLE_CONNECTION_LABLES event when I drop any node on the connections. I tried a lot but couldn't get REQ_DROP when I drop any object on the connection.
When I drop any node on any other node at that time I get REQ_DROP but for connection it doesn't generate this event.
|
|
|
Powered by
FUDForum. Page generated in 0.03647 seconds