Skip to main content



      Home
Home » Eclipse Projects » SWTBot » SWTBotGefConnectionEditPart Move(change the source/terget of a SWTBotGefConnectionEditPart)
icon5.gif  SWTBotGefConnectionEditPart Move [message #648991] Mon, 17 January 2011 01:37 Go to next message
Eclipse UserFriend
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 01:40] by Moderator

Re: SWTBotGefConnectionEditPart Move [message #648994 is a reply to message #648991] Mon, 17 January 2011 02:05 Go to previous messageGo to next message
Eclipse UserFriend
Hii.. Can u please tell me if there is any simple way to create a SWTBotGefConnectionEditPart between to editparts??

Best Regards,
Shruthi
Re: SWTBotGefConnectionEditPart Move [message #649176 is a reply to message #648994] Mon, 17 January 2011 21:13 Go to previous messageGo to next message
Eclipse UserFriend
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 12:36 Go to previous message
Eclipse UserFriend
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
Previous Topic:How to right-click in a column of a table
Next Topic:VMWare and SWTBotView
Goto Forum:
  


Current Time: Tue Jul 22 15:16:10 EDT 2025

Powered by FUDForum. Page generated in 0.03681 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top