SWTBotGefConnectionEditPart Move [message #648991] |
Mon, 17 January 2011 06:37 |
|
Hello,
1, I have three SWTBotGefEditPart: part1, part2 and part3
2, There is a SWTBotGefConnectionEditPart from part1 to
part2, named conn1.
Question:
How can I change the target of conn1 from part2 to part3?
or change the source from part1 to part3?
Thanks,
Ben
[Updated on: Mon, 17 January 2011 06:40] Report message to a moderator
|
|
|
|
Re: SWTBotGefConnectionEditPart Move [message #649176 is a reply to message #648994] |
Tue, 18 January 2011 02:13 |
|
Hi Shruthi,
I am testing a Eclipse Plugin Project with SWTBOT.
The SWTBotGefConnectionEditPart create function is depend on this project. I don't know how to create a ConnectPart simply neither.
Looking for someone who knows this skill can help us.
Best Regards,
Ben
|
|
|
Re: SWTBotGefConnectionEditPart Move [message #650396 is a reply to message #648991] |
Mon, 24 January 2011 17:36 |
Mariot Chauvin Messages: 174 Registered: July 2009 |
Senior Member |
|
|
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.03157 seconds