[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: TreeItem expansion strategy

Ok, thanks for the clarification. It would be nice with the described 'flaglike'
behavior, but it's no big deal working around it in my project.


On Thu, 28 Apr 2005 19:00:53 +0200, Emil Crumhorn <crumhorn@xxxxxxxxxxxxx> wrote:

Sound like correct behavior to me. If the parent has no children, how can it
expand to show what it doesn't have?


I realize you want setExpanded to end up like a flag on the folder so when
stuff is added to it, it knows it's supposed to be expanded and does so.
[snip]

"Max Rotvel" <rotvel@xxxxxxxxxxxxxxxxxx> wrote in message
news:op.spv7wzkp94ko3h@xxxxxxxxxxxxxxxx
I have a two-layered Tree where I want all the topitems to be expanded
at creation time.

If I call setExpanded(true) on the topitems, before adding the subitems,
they are not expanded. If I call setExpanded(true) after adding the
subitems, the topitems are expanded properly.
[snip]

Regards
--
 Max  - rotvel AT bolignet-aarhus DOT dk