|
|
|
Re: SWTBotGefConnectionEditPart Move [message #650396 is a reply to message #648991] |
Mon, 24 January 2011 12:36  |
Eclipse User |
|
|
|
Hi Ben,
Comments below.
Le 17/01/2011 07:37, benhu a écrit :
> Hello,
>
> 1, I have three SWTBotGefEditPart: part1, part2 and part3
> 2, There is a SWTBotGefConnectionEditPart from part1 to part2, named conn1.
> Question:
>
> 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#reconnectSource and
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?
>
>
> Thanks,
> Ben
Regards,
Mariot
--
Mariot Chauvin @ Obeo
http://www.obeo.fr
http://mariot-thoughts.blogspot.com
http://fr.linkedin.com/in/mariotchauvin
|
|
|
Powered by
FUDForum. Page generated in 0.03681 seconds