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 Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
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 is currently offline Mickael IstriaFriend
Messages: 865
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 Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
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 messageGo to next message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
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
Re: Draw2D Support in GEF [message #1805494 is a reply to message #1701097] Tue, 16 April 2019 10:01 Go to previous message
Pascal Mandende is currently offline Pascal MandendeFriend
Messages: 1
Registered: April 2019
Junior Member
Hello,
I have an eclipse application based on draw2d components but doesn't implement the GEF MVC model. I read that you, Annamalai Chockalingam was able to select draw2d figures using SWTBot. Could you tell me how did you manage to do that? Where should i start?

An help in this matter would be really appreciated .

Thanks.
Previous Topic:SWTBot now supports reading of Status Line messages
Next Topic:Wrong tested application is started when tests are running with Tycho
Goto Forum:
  


Current Time: Fri Apr 26 16:44:01 GMT 2024

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

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

Back to the top