Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » how to get draw2d objects on the regular eclipse views
how to get draw2d objects on the regular eclipse views [message #904268] Tue, 28 August 2012 06:12 Go to next message
Aparna Argade is currently offline Aparna ArgadeFriend
Messages: 60
Registered: October 2010
Member
My application has a regular eclipse view; it is not a GefView. Also I don't have any Gef Editor associated.
A custome control, which extends from draw2d Figure, is prepared on the canvas objects. This control is present on the regular eclipse view.

I'm not getting how to get that custome control.
I can not use Matchers which work only on Widgets, because Figure.class is not of type Widget. So I cannot write WidgetOfType matchers.

I extend my test from SWTBotGefTestCase.
I cannot use bot.gefView or bot.getEditor because my view/editor is not Gef.
I think I've to get either get Gef/GraphicalViewer or LightweightSystem. But I'm not getting how to get it.
Please tell me how to write the test code for draw2d objects on the regular eclipse views.
Re: how to get draw2d objects on the regular eclipse views [message #911213 is a reply to message #904268] Tue, 11 September 2012 07:32 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

SWTBot does not have support for draw2d. It has support for GEF using
GEF concepts (views), but no support for draw2d Figures.
Please report this as a feature request, however I'm not sure it will be
implemented soon, except if you do it by yourself (this contribution
would be highly welcome).

On 08/28/2012 08:12 AM, Aparna Argade wrote:
> My application has a regular eclipse view; it is not a GefView. Also I
> don't have any Gef Editor associated.
> A custome control, which extends from draw2d Figure, is prepared on the
> canvas objects. This control is present on the regular eclipse view.
>
> I'm not getting how to get that custome control.
> I can not use Matchers which work only on Widgets, because Figure.class
> is not of type Widget. So I cannot write WidgetOfType matchers.
>
> I extend my test from SWTBotGefTestCase.
> I cannot use bot.gefView or bot.getEditor because my view/editor is not
> Gef.
> I think I've to get either get Gef/GraphicalViewer or LightweightSystem.
> But I'm not getting how to get it.
> Please tell me how to write the test code for draw2d objects on the
> regular eclipse views.


--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:How simultaneously press keyStroke and type character
Next Topic:SWTBotEclipseEditor title and tooltip text
Goto Forum:
  


Current Time: Tue Apr 16 14:16:03 GMT 2024

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

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

Back to the top