Drop Listener for Connection [message #194655] |
Thu, 26 June 2008 10:13 |
Eclipse User |
|
|
|
Originally posted by: Shwetha.V.in.bosch.com
Hello All,
I have a simple model containing Components and Connections.
When I drag a connection from Component1(source editpart) and drop it on
Component2(target editpart) I have to open a dialog to take values for
that particular connection.So i have to basically open a diolog on drop of
the connection.
I tried the following :
1>In my xxxDiagramEditor initializeGraphicalViewer() i added the following
getDiagramGraphicalViewer().addDropTargetListener(new
MyDropTargetListener())
2>In my xxxConnectorEditPart i installed DragDropEditPolicy
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new
DiagramDragDropEditPolicy)
When I debug and check i found out that its not getting inside
MyDropTargetListener().
Am I missing some link..or is there any other better way of solving the
problem.
Thanks in advance.
Regards,
Shwetha
|
|
|
|
Re: Drop Listener for Connection [message #194881 is a reply to message #194708] |
Mon, 30 June 2008 04:29 |
Eclipse User |
|
|
|
Originally posted by: Shwetha.V.in.bosch.com
Thanks Alex :)
It helped me getting the diolog but on click of OK of the diolog the
entered value is not getting refreshed in the GMF Editor.
Thanks in Advance.
Regards,
Shwetha
|
|
|
|
Powered by
FUDForum. Page generated in 0.04087 seconds