Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Jay Norwood is currently offline Jay Norwood
Messages: 112
Registered: July 2009
Senior Member
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 User
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: Fri Apr 18 04:14:40 EDT 2014

Powered by FUDForum. Page generated in 0.01667 seconds