|
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 |
|
On 09/10/2012 01:20 PM, kanarupan kularatnarajah wrote:
> I tried with (which is working for
org.eclipse.ui.forms.widgets.FormText),
> MasterDetailsBlock
> masterDetailsBlock=bot.widget(widgetOfType(MasterDetailsBlock.class));
> Does SWTBot support to test org.eclipse.ui.forms.MasterDetailsBlock
> components?
The method "widgetOfType" signature is:
<T extends org.eclipse.swt.widgets.Widget> org.hamcrest.Matcher<T>
inUIThread(org.hamcrest.Matcher<?> matcher)
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
SWTBot APIs.
> 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.
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03840 seconds