Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » TreeItem.pressShortcut() stopped working(TreeItem.pressShortcut() stopped working after build version 2.0.0.433)
TreeItem.pressShortcut() stopped working [message #513132] Tue, 09 February 2010 01:56 Go to next message
Brian Yu is currently offline Brian YuFriend
Messages: 10
Registered: July 2009
Junior Member
Hi all,

I had this piece of code with a TreeItem calling a shortcut key, but now I am getting an exception when working with build versions after 2.0.0.433.

What this code does is it selects a tree item from the Eclipse Properties view and opens up a property dialog by simulating the Enter key being hit on this property item:

MyBot.tree().getTreeItem("ParentItem").select("ChildItem" ).pressShortcut(Keystrokes.LF).pressShortcut(Keystrokes.LF);


After upgrading to a later version, I am consistently getting the following exception:
org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: The widget TreeItem with text {TreeItem {ChildItem}} was not enabled.
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot Factory.java:398)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot Factory.java:372)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot Factory.java:360)
at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.waitFor Enabled(AbstractSWTBot.java:609)
at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.pressSh ortcut(AbstractSWTBot.java:856)


Any thoughts on what may be going on or workarounds?

Thanks,
Brian
Re: TreeItem.pressShortcut() stopped working [message #513143 is a reply to message #513132] Mon, 08 February 2010 22:28 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Hi Brian,

This is a regression that slipped in because of bug 299201. I've fixed
this in trunk immediately.

Would it be OK if I push the next build this weekend, so that I can
spend some time on testing things.

Cheers!

-- Ketan

On 2/8/10 5:56 PM, Brian Yu wrote:
> Hi all,
>
> I had this piece of code with a TreeItem calling a shortcut key, but now
> I am getting an exception when working with build versions after 2.0.0.433.
>
> What this code does is it selects a tree item from the Eclipse
> Properties view and opens up a property dialog by simulating the Enter
> key being hit on this property item:
>
> MyBot.tree().getTreeItem("ParentItem").select("ChildItem"
> ).pressShortcut(Keystrokes.LF).pressShortcut(Keystrokes.LF);
>
>
> After upgrading to a later version, I am consistently getting the
> following exception:
> org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after:
> 5000 ms.: The widget TreeItem with text {TreeItem {ChildItem}} was not
> enabled.
> at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot
> Factory.java:398)
> at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot
> Factory.java:372)
> at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot
> Factory.java:360)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.waitFor
> Enabled(AbstractSWTBot.java:609)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.pressSh
> ortcut(AbstractSWTBot.java:856)
>
>
> Any thoughts on what may be going on or workarounds?
>
> Thanks,
> Brian
>
Re: TreeItem.pressShortcut() stopped working [message #513342 is a reply to message #513143] Tue, 09 February 2010 19:26 Go to previous messageGo to next message
Brian Yu is currently offline Brian YuFriend
Messages: 10
Registered: July 2009
Junior Member
Great sounds good. Thanks Ketan.

Regards,
Brian
Re: TreeItem.pressShortcut() stopped working [message #515261 is a reply to message #513143] Thu, 18 February 2010 10:03 Go to previous messageGo to next message
Georgina Lindsey is currently offline Georgina LindseyFriend
Messages: 1
Registered: February 2010
Junior Member
Hi Ketan,

Could you let me know when a build including the fix for this issue will be available from the update site? I'm currently using r2.0.0.486 and getting the described errors for TreeItem.pressShortcut().

Thanks,

Georgina
Re: TreeItem.pressShortcut() stopped working [message #515291 is a reply to message #515261] Thu, 18 February 2010 10:49 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Sorry this completely slipped my mind, I'll do that tomorrow first thing.

Cheers!

-- Ketan

On 2/18/10 2:03 AM, Georgina Lindsey wrote:
> Hi Ketan,
>
> Could you let me know when a build including the fix for this issue will
> be available from the update site? I'm currently using r2.0.0.486 and
> getting the described errors for TreeItem.pressShortcut().
>
> Thanks,
>
> Georgina
Re: TreeItem.pressShortcut() stopped working [message #515803 is a reply to message #515261] Sun, 21 February 2010 04:13 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
I've pushed the latest build out and it's available on the downloads
page on swtbot.

Enjoy!

-- Ketan

On 2/18/10 3:33 PM, Georgina Lindsey wrote:
> Hi Ketan,
>
> Could you let me know when a build including the fix for this issue will
> be available from the update site? I'm currently using r2.0.0.486 and
> getting the described errors for TreeItem.pressShortcut().
>
> Thanks,
>
> Georgina
Previous Topic:Renaming a node in a tree
Next Topic:SWTBotMenu
Goto Forum:
  


Current Time: Fri Mar 29 05:47:12 GMT 2024

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

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

Back to the top