|Re: activate a tab in the properties view [message #981302 is a reply to message #953641]
||Mon, 12 November 2012 10:07
|| Mickael Istria
Registered: July 2009
Location: Grenoble, France
On 10/22/2012 02:11 PM, Junior Lekane Nimpa wrote:|
> Hello all,
> i am quite new to SWTBot. I implemented custom properties sheet and i
> want to test them.
> But i don't know how to click on a tab so that the properties sections
> get displayed.
> Can someone tell me how to do that with SWTBot?
> I use Eclipse 4.2 on Windows.
Do you mean you're using a MultiTab property view like this one:
? If yes, this concept is not (yet) supported by SWTBot. You should open
a feature request for it and suggest a patch. As an
implementation/workaround, you should rely on underlying JFace code in a
UIThreadRunnable. See what BonitaSoft guys did as an example (beware,
it's GPL, so act accordingly)
If your request is just about enabling an open View, then use bot.view
and then activate() or select() or enable() or setFocus() or any method
whose name seems to do what you expect ;)
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Powered by FUDForum
. Page generated in 0.04048 seconds