No SWTBotTreeItem recursive expand [message #479640] |
Tue, 11 August 2009 16:14  |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.11166 seconds