Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » GET SUBTEXT
GET SUBTEXT [message #19457] Tue, 03 February 2009 09:25 Go to next message
Luis Miguel is currently offline Luis MiguelFriend
Messages: 31
Registered: July 2009
Member
Hello,

How Can I get subtext from a eclipse shell?
For example, (Java perspective) I click File --> New --> Package, There is
a label with "Java Package". Under of "Java Package" there is a new label
"Create New Java Package". How Can I get "Create New Java Package" with
SWTBot?

Thanks and regards

Luis Miguel
Re: GET SUBTEXT [message #20468 is a reply to message #19457] Fri, 06 February 2009 13:26 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
You'll need to use the withText matcher to find widgets with the
specified text:

Widget w = bot.widget(withText("Create a new Java package."));

-- Ketan

On 3/2/09 14:55, Luis Miguel wrote:
> Hello,
>
> How Can I get subtext from a eclipse shell?
> For example, (Java perspective) I click File --> New --> Package, There
> is a label with "Java Package". Under of "Java Package" there is a new
> label "Create New Java Package". How Can I get "Create New Java Package"
> with SWTBot?
>
> Thanks and regards
>
> Luis Miguel
Previous Topic:New dev builds available
Next Topic:Sending CTRL + F10 to a SWTBotEclipseEditor
Goto Forum:
  


Current Time: Thu Apr 25 05:00:53 GMT 2024

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

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

Back to the top