Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to convert a list of widgets to SWTBot's wrapper objects?
How to convert a list of widgets to SWTBot's wrapper objects? [message #641938] Mon, 29 November 2010 10:29 Go to next message
Geoff Bache is currently offline Geoff BacheFriend
Messages: 33
Registered: October 2010
Member
Hi all,

I can get lists of widgets out by creating an SWTBot object and calling the "widgets" method on it.

Problem is that to actually do useful stuff with them I need the equivalent instances of subclasses of AbstractSWTBot , i.e. if it's a MenuItem I want to make an SWTBotMenu, if it's a TreeItem I need an SWTBotTreeItem etc.

Do I need to iterate through and write a special case for every widget type? Or is there some method in SWTBot that will do this for me, that I've missed?

Regards,
Geoff Bache
Re: How to convert a list of widgets to SWTBot's wrapper objects? [message #641947 is a reply to message #641938] Mon, 29 November 2010 10:41 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
There's nothing in the swtbot that does this automagically.

--
Ketan
ketan.padegaonkar.name | eclipse.org/swtbot | @ketanpkr

On 11/29/10 3:59 PM, Geoff Bache wrote:
> Hi all,
>
> I can get lists of widgets out by creating an SWTBot object and calling
> the "widgets" method on it.
>
> Problem is that to actually do useful stuff with them I need the
> equivalent instances of subclasses of AbstractSWTBot , i.e. if it's a
> MenuItem I want to make an SWTBotMenu, if it's a TreeItem I need an
> SWTBotTreeItem etc.
>
> Do I need to iterate through and write a special case for every widget
> type? Or is there some method in SWTBot that will do this for me, that
> I've missed?
>
> Regards,
> Geoff Bache
>
Re: How to convert a list of widgets to SWTBot's wrapper objects? [message #641950 is a reply to message #641947] Mon, 29 November 2010 11:02 Go to previous message
Geoff Bache is currently offline Geoff BacheFriend
Messages: 33
Registered: October 2010
Member
OK, thanks for the quick response.

/Geoff
Previous Topic:GEF - activating palette tool
Next Topic:Editing properties in tabbed properties view
Goto Forum:
  


Current Time: Tue Apr 16 17:13:33 GMT 2024

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

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

Back to the top