Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Draw2D Support in GEF
Draw2D Support in GEF [message #1700399] Thu, 02 July 2015 11:53 Go to next message
Annamalai Chockalingam is currently offline Annamalai ChockalingamFriend
Messages: 121
Registered: July 2009
Senior Member
Hello There

We are working on a E4 based application which has a view containing
Draw2D figures. We are interested in testing these using SWTBot. But
with our understanding it looks like Draw2D alone isnt supported on
SWTBot. Coz i find methods like getGraphicalViewer, getEditPart etc. but
no method to find getFigure etc.

Therefore can you please confirm how can i test a Draw2D based
application using SWTBot.

Regards
Malai
Re: Draw2D Support in GEF [message #1701013 is a reply to message #1700399] Wed, 08 July 2015 16:06 Go to previous messageGo to next message
Mickael Istria - away until August 14th is currently offline Mickael Istria - away until August 14thFriend
Messages: 833
Registered: July 2009
Location: Grenoble, France
Senior Member

There is some good support for GEF (and family), but there is no API for
Draw2d "only". If you're willing to contribute some new APIs for that,
that'd probably be welcome http://wiki.eclipse.org/SWTBot/Contributing
Re: Draw2D Support in GEF [message #1701074 is a reply to message #1701013] Thu, 09 July 2015 08:15 Go to previous messageGo to next message
Annamalai Chockalingam is currently offline Annamalai ChockalingamFriend
Messages: 121
Registered: July 2009
Senior Member
On 7/8/2015 9:36 PM, Mickael Istria wrote:
> There is some good support for GEF (and family), but there is no API for
> Draw2d "only". If you're willing to contribute some new APIs for that,
> that'd probably be welcome http://wiki.eclipse.org/SWTBot/Contributing

Thanks for your email. I would love to contribute back. Do let me know
some hinting points on how to start. I tried to read thru the code.
So i should start with finding the FigureCanvas and then hav a method to
find Figures on the FigureCanvas using Labels like how you have
editparts with labels.

Therefore do i need a new Matcher implementation or can i reuse
something that is already existing. Like i am sure finding the
FigureCanvas as this class already exists, there should be some matcher
implementation.

Looking forward to get started soon.

Regards
Malai
Re: Draw2D Support in GEF [message #1701097 is a reply to message #1701074] Thu, 09 July 2015 09:51 Go to previous message
Annamalai Chockalingam is currently offline Annamalai ChockalingamFriend
Messages: 121
Registered: July 2009
Senior Member
Hello Mikael

I moved a little further. I extended your SWTBotGefFigureCanvas and
contributed a new method for getting its contents and managed to get the
figures.

But now to move further i realised i need to create a SWTBotGefFigure
class which would extended from AbstractSWTBotControl<T>. But when i try
to do that AbstractSWTBotControl cannot take an IFigure as it is not
from SWT Controls.

Do let me know how do i proceed ? Some help on that line will definitely
help.

Regards
Malai

On 7/9/2015 1:45 PM, Annamalai wrote:
> On 7/8/2015 9:36 PM, Mickael Istria wrote:
>> There is some good support for GEF (and family), but there is no API for
>> Draw2d "only". If you're willing to contribute some new APIs for that,
>> that'd probably be welcome http://wiki.eclipse.org/SWTBot/Contributing
>
> Thanks for your email. I would love to contribute back. Do let me know
> some hinting points on how to start. I tried to read thru the code.
> So i should start with finding the FigureCanvas and then hav a method to
> find Figures on the FigureCanvas using Labels like how you have
> editparts with labels.
>
> Therefore do i need a new Matcher implementation or can i reuse
> something that is already existing. Like i am sure finding the
> FigureCanvas as this class already exists, there should be some matcher
> implementation.
>
> Looking forward to get started soon.
>
> Regards
> Malai
Previous Topic:Problem with Mars on Kali
Next Topic:SWTBot for Indigo
Goto Forum:
  


Current Time: Mon Nov 19 16:39:18 GMT 2018

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

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

Back to the top