|Re: SWTBotGefConnectionEditPart Move [message #650396 is a reply to message #648991]
||Mon, 24 January 2011 17:36
| Mariot Chauvin
Registered: July 2009
Le 17/01/2011 07:37, benhu a écrit :
> 1, I have three SWTBotGefEditPart: part1, part2 and part3
> 2, There is a SWTBotGefConnectionEditPart from part1 to part2, named conn1.
> How can change the target of conn1 from part2 to part3?
You should do it in the same way a user will do it.
What you describe is a reconnection, and generaly user do reconnections
through a drag operation.
Have a look to SWTBotGefConnectionEditPart#createBendpoint and how is it
used in AllTests.java (on the git repo).
If you have time it will be great if you could contribute
SWTBotGefConnectionEditPart#reconnectTarget methods or if you lack time
you could open a bugzilla and "sponsor" its realization :)
> or change the source from part1 to part3?
Mariot Chauvin @ Obeo
Powered by FUDForum
. Page generated in 0.02844 seconds