Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » TreeItems
TreeItems [message #254217] Mon, 21 June 2004 12:52 Go to next message
Eclipse UserFriend
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 #254369 is a reply to message #254217] Mon, 21 June 2004 19:22 Go to previous messageGo to next message
Michael Keppler is currently offline Michael KepplerFriend
Messages: 164
Registered: July 2009
Senior Member
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.

Ciao, Michael.
Re: TreeItems [message #254506 is a reply to message #254369] Tue, 22 June 2004 08:27 Go to previous message
Eclipse UserFriend
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.
Previous Topic:custom close dialog for an editor
Next Topic:test
Goto Forum:
  


Current Time: Thu Jul 25 06:15:49 GMT 2024

Powered by FUDForum. Page generated in 0.03479 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top