|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
|| Mickael Istria
Registered: July 2009
Location: Grenoble, France
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
> 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.
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Powered by FUDForum
. Page generated in 0.31442 seconds