|
Re: expandNode delays [message #472330 is a reply to message #468499] |
Wed, 05 August 2009 19:36 |
Jay Norwood Messages: 155 Registered: July 2009 |
Senior Member |
|
|
While looking at the expandNode problem, I tried out the recursive
expandNode
bot.tree().expandNode("C1",true).expandNode("Debug").select();
I tried to expand recursively the project explorer view tree for the small
Hello World Mingw C stationery project. I came back after lunch and it
was still executing the statement above in the test. I don't know if
there are circular references in that tree, or if it just has a bunch of
data.
Maybe we should have a version, expandNode(String, boolean, int depth),to
limit the recursion depth.
Anyway, this form is dangerous, but I can see the use for some recursive
form.
I'm also curious why there is no recursive form of expandNode for
SWTBotTreeItem.
|
|
|
Re: expandNode delays [message #477133 is a reply to message #472330] |
Thu, 06 August 2009 03:38 |
Ketan Padegaonkar Messages: 873 Registered: July 2009 |
Senior Member |
|
|
It is quite possible that the UI thread froze up. Would you have any
logs at the time this happened. I doubt a hello world program would have
so much content in it that it is still scratching its head after you
come from lunch.
--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
On 6/8/09 01:06, Jay Norwood wrote:
> While looking at the expandNode problem, I tried out the recursive
> expandNode
>
> bot.tree().expandNode("C1",true).expandNode("Debug").select();
>
> I tried to expand recursively the project explorer view tree for the
> small Hello World Mingw C stationery project. I came back after lunch
> and it was still executing the statement above in the test. I don't know
> if there are circular references in that tree, or if it just has a bunch
> of data.
>
> Maybe we should have a version, expandNode(String, boolean, int
> depth),to limit the recursion depth.
> Anyway, this form is dangerous, but I can see the use for some recursive
> form.
>
> I'm also curious why there is no recursive form of expandNode for
> SWTBotTreeItem.
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07042 seconds