Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTWorkbenchBot#button works only on button class with style == SWT.PUSH - why?
SWTWorkbenchBot#button works only on button class with style == SWT.PUSH - why? [message #40189] Tue, 23 June 2009 11:11 Go to next message
Michal Bernhard is currently offline Michal Bernhard
Messages: 2
Registered: July 2009
Junior Member
Hello everyone,

why method SWTWorkbenchBot#button() (and #buttonWithLabel...etc.) works
only
when the button has style SWT.PUSH? I understand that this check is there
due to don't match button classes which are in fact checkboxes
(button.class with SWT.CHECK style flag).
But...
I am using a buttons with style SWT.FLAT a lot so SWTWorkbenchBot#button()
doesn't work. Is there any real reason to check button widget only for
style SWT.PUSH and not for SWT.PUSH | SWT.FLAT in SWTWorkbenchBot#button()
method?
Re: SWTWorkbenchBot#button works only on button class with style == SWT.PUSH - why? [message #40226 is a reply to message #40189] Tue, 23 June 2009 15:12 Go to previous message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
The javadoc for that flag is documented in the constructor and not in
the class description of Button and got missed. Please open a bug and
I'll take a look at this on priority.

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr


On 23/6/09 20:41, Michal Bernhard wrote:
> Hello everyone,
>
> why method SWTWorkbenchBot#button() (and #buttonWithLabel...etc.) works
> only
> when the button has style SWT.PUSH? I understand that this check is
> there due to don't match button classes which are in fact checkboxes
> (button.class with SWT.CHECK style flag).
> But...
> I am using a buttons with style SWT.FLAT a lot so
> SWTWorkbenchBot#button() doesn't work. Is there any real reason to check
> button widget only for style SWT.PUSH and not for SWT.PUSH | SWT.FLAT in
> SWTWorkbenchBot#button() method?
>
Previous Topic:Upgraded from build 204 to 348 and now I cannot run any SWTBot Tests
Next Topic:TestNG Support.
Goto Forum:
  


Current Time: Thu Jul 24 10:45:23 EDT 2014

Powered by FUDForum. Page generated in 0.04720 seconds