Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Jun 15 02:03:42 EDT 2025

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

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

Back to the top