Fixed source and target for connection [message #639243] |
Mon, 15 November 2010 12:57  |
Eclipse User |
|
|
|
Hi
I have a connetion between source and target. Is there any way to prevent the changin of the source or target of connection once it is connected between two elements. I have gone through
GraphicalNodeEditPolicy , ConnectionEndPointsPolicy and ConnectionEditPolicy for this. I am confused which is the one i need to use
My investigation :In GraphicalNodeEditPolicy i have found that the methods responsible for handling reconnection are :
getReconnectSourceCommand(ReconnectRequest r)
getReconnectTargetCommand(ReconnectRequest r)
i have tried to override these methods and set the command an request to null so that reonnect action is not done. But it does not solve the problem and the connection can be moved. Can anybody provide some help here.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03339 seconds