|Re: SWTBot testing controls which extend org.eclipse.ui.forms.MasterDetailsBlock [message #911215 is a reply to message #910769]
||Tue, 11 September 2012 07:33
|| Mickael Istria
Registered: July 2009
Location: Grenoble, France
On 09/10/2012 01:20 PM, kanarupan kularatnarajah wrote:|
> I tried with (which is working for
> Does SWTBot support to test org.eclipse.ui.forms.MasterDetailsBlock
The method "widgetOfType" signature is:
<T extends org.eclipse.swt.widgets.Widget> org.hamcrest.Matcher<T>
As you can see, it expects the argument T to extend
"org.eclipse.swt.widgets.Widget". A MasterDetailsBlock is not a Widget,
it's more a kind of Factory or Controller. You can't access it with
> In the negative case how to contribute that facility?
It does not make sense to support this in SWTBot since a
MasterDetailsBlock is not a UI component, it's a logical one.
Instead, you can seek into the details part using regular SWTBot APIs,
just as if there were no MasterDetails in your editor.
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Powered by FUDForum
. Page generated in 0.05088 seconds