TreeItems [message #254217] |
Mon, 21 June 2004 08:52  |
Eclipse User |
|
|
|
Originally posted by: JWessling.gmx.de
Hi.
How can i expand TreeItems?
The tree is filled correct, there is a cross next to the Element that
has children, I get the TreeEvent that shows that the tree will be
expanded, but I don't see it. I tried in the treeExpanded-method
to update or redraw the tree. I set the item to setExpanded(true)
and I tried tree.showItem() for every item that is hierachily under
my expanded item, but the only thing happen, is that the cross beside my
item disappears.
Thanks
Jan
|
|
|
|
Re: TreeItems [message #254506 is a reply to message #254369] |
Tue, 22 June 2004 04:27  |
Eclipse User |
|
|
|
Originally posted by: JWessling.gmx.de
Michael Keppler wrote:
> Jan Wessling schrieb:
>
>> Hi.
>> How can i expand TreeItems?
>> The tree is filled correct, there is a cross next to the Element that
>> has children,
>
>
> At least on Windows, a tree item also has a plus sign if the tree does
> not yet know if there are children.
>
> I get the TreeEvent that shows that the tree will be
>
>> expanded, but I don't see it. I tried in the treeExpanded-method
>> to update or redraw the tree. I set the item to setExpanded(true)
>> and I tried tree.showItem() for every item that is hierachily under
>> my expanded item, but the only thing happen, is that the cross beside my
>> item disappears.
>
>
> Sounds exactly like having no child and the plus sign disappearing when
> the tree knows about it after the unsuccessful try to show then children.
>
> So please check your code if you _really_ add children to the item.
When debugging and examining the tree, the treeitems are added under the
top-level items. But when the event appears, the tree only has the
top-level elements. I tried out to make the tree more global, but the
same happens as described above.
CU
Jan
>
> Ciao, Michael.
|
|
|
Powered by
FUDForum. Page generated in 0.05097 seconds