Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:42 Go to next message
Devang Ganatra is currently offline Devang GanatraFriend
Messages: 2
Registered: January 2013
Junior Member
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 09:21 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
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 09:37 Go to previous message
Devang Ganatra is currently offline Devang GanatraFriend
Messages: 2
Registered: January 2013
Junior Member
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: Thu Apr 25 16:55:53 GMT 2024

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

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

Back to the top