Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBotGefConnectionEditPart Move(change the source/terget of a SWTBotGefConnectionEditPart)
icon5.gif  SWTBotGefConnectionEditPart Move [message #648991] Mon, 17 January 2011 06:37 Go to next message
benhu Missing name is currently offline benhu Missing nameFriend
Messages: 14
Registered: October 2010
Junior Member

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 #648994 is a reply to message #648991] Mon, 17 January 2011 07:05 Go to previous messageGo to next message
Shruthi  is currently offline Shruthi Friend
Messages: 4
Registered: January 2011
Junior Member
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] Tue, 18 January 2011 02:13 Go to previous messageGo to next message
benhu Missing name is currently offline benhu Missing nameFriend
Messages: 14
Registered: October 2010
Junior Member

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 Go to previous message
Mariot Chauvin is currently offline Mariot ChauvinFriend
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
Previous Topic:How to right-click in a column of a table
Next Topic:VMWare and SWTBotView
Goto Forum:
  


Current Time: Wed Apr 24 21:12:28 GMT 2024

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

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

Back to the top