Skip to main content



      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 07:56 Go to next message
Eclipse UserFriend
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 08:30 Go to previous messageGo to next message
Eclipse UserFriend
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 08:51 Go to previous message
Eclipse UserFriend
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: Sat Jun 14 23:37:07 EDT 2025

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

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

Back to the top