Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to register Connection Edit Part as Drop Target
How to register Connection Edit Part as Drop Target [message #996960] Thu, 03 January 2013 04:42 Go to next message
Eclipse UserFriend
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 #997382 is a reply to message #996960] Mon, 07 January 2013 04:21 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

did you try to do this via installing an edit policy?

Ralph
Re: How to register Connection Edit Part as Drop Target [message #997391 is a reply to message #997382] Mon, 07 January 2013 04:37 Go to previous message
Eclipse UserFriend
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.

Previous Topic:Save operation corrupts diagram file
Next Topic:How to get the Model Element of an ILayoutNode?
Goto Forum:
  


Current Time: Fri Jul 18 22:16:47 EDT 2025

Powered by FUDForum. Page generated in 0.25884 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top