Skip to main content



      Home
Home » Eclipse Projects » SWTBot » No SWTBotTreeItem recursive expand
No SWTBotTreeItem recursive expand [message #479640] Tue, 11 August 2009 16:14 Go to next message
Eclipse UserFriend
Currently there is a SWTBotTree expandNode(String,boolean) to do recursive
expand, but there is no SWTBotTreeItem expandNode (String,boolean) to do
the same.

I copied SWTBotTree expandNode(String,boolean) to SWTBotTreeItem, and it
works ok there, so I can now do:

bot.tree().expandNode("C1").expandNode("src",true);

which expands the src subtree recursively;


---------
There are also no analagous expandNode(boolean) operations in either
SWTBotTree or SWTBotTreeItem, which would seem to be required for a more
orthogonal offering of functions. I'm guessing if there were a
expandNode(boolean) in SWTBotTreeItem, that all the other higher level
recursive expands in both SWTBotTree and SWTBotTreeItem could be
reimplemented to let that single function do the work, and would save code
duplication from my proposed solution above.
Re: No SWTBotTreeItem recursive expand [message #480686 is a reply to message #479640] Tue, 18 August 2009 04:37 Go to previous message
Eclipse UserFriend
Originally posted by: pelkjaer.apcc.com

Thanks for reporting this Jay.

This fixed an issue I have combined with the SWTBOTDND, when I move over
treeItems making my unit tests fail.

Thanks again

/Peter
Previous Topic:Setting values in the Properties View
Next Topic:fix for problem with radio button
Goto Forum:
  


Current Time: Tue Jun 17 04:10:54 EDT 2025

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

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

Back to the top