Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Couldn't pressShortcut() be supported for all widgets?
Couldn't pressShortcut() be supported for all widgets? [message #481525] Fri, 21 August 2009 11:56 Go to next message
Daniel Weber is currently offline Daniel WeberFriend
Messages: 51
Registered: July 2009
Member
Hi all,

we wanted to 'send' a few keystrokes to a tree to simulate a user pressing delete, for example. This is currently not possible (correct me if I'm wrong).

Pressing shortcuts is currently supported for SWTBotText and SWTBotStyledText only. Wouldn't it make sense to pull the pressShortcut methods up to the abstract base class (AbstractSWTBot)? The implementations don't use anything special to the text widgets. This would allow us to simulate key presses for every SWTBot widget.

Regards,
Daniel
Re: Couldn't pressShortcut() be supported for all widgets? [message #481528 is a reply to message #481525] Fri, 21 August 2009 12:30 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
This is something I've been speculating for a while. Please open a bug
and I'll take a look at it.

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


On 21/8/09 17:26, Daniel Weber wrote:
> Hi all,
>
> we wanted to 'send' a few keystrokes to a tree to simulate a user
> pressing delete, for example. This is currently not possible (correct me
> if I'm wrong).
>
> Pressing shortcuts is currently supported for SWTBotText and
> SWTBotStyledText only. Wouldn't it make sense to pull the pressShortcut
> methods up to the abstract base class (AbstractSWTBot)? The
> implementations don't use anything special to the text widgets. This
> would allow us to simulate key presses for every SWTBot widget.
>
> Regards,
> Daniel
Re: Couldn't pressShortcut() be supported for all widgets? [message #481530 is a reply to message #481528] Fri, 21 August 2009 12:51 Go to previous message
Daniel Weber is currently offline Daniel WeberFriend
Messages: 51
Registered: July 2009
Member
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=287295 (patch included :))

Regards,
Daniel
Previous Topic:Click on columnheader in a treetableviewer
Next Topic:fix for tree expand flakiness
Goto Forum:
  


Current Time: Wed Apr 24 20:34:22 GMT 2024

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

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

Back to the top