Skip to main content


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 15:11 Go to next message
Michal Bernhard is currently offline Michal BernhardFriend
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 19:12 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
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: Sat Apr 27 01:56:39 GMT 2024

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

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

Back to the top