Skip to main content



      Home
Home » Eclipse Projects » JFace » TreeViewer getItems
TreeViewer getItems [message #18468] Wed, 01 July 2009 07:09 Go to next message
Eclipse UserFriend
Hi all,
I need programatically follow a tree from the root.
I'm using the getItems method but it returns TreeItem[0] when the node
isn't expanded.

How I can get the children even if the parent node is collapsed?

Thank you in advance.
Re: TreeViewer getItems [message #18490 is a reply to message #18468] Wed, 01 July 2009 07:41 Go to previous message
Eclipse UserFriend
Hi,

See my post from above. DO NOT operate on the Tree-Widget when you have
viewer.

TreeViewer is creating sub-trees lazily (you might findout that once you
expanded and collapsed you get sub-items).

You should walk through your Domain-Object Tree not the one presented in
the Viewer!

Tom

David Crecente schrieb:
> Hi all,
> I need programatically follow a tree from the root.
> I'm using the getItems method but it returns TreeItem[0] when the node
> isn't expanded.
>
> How I can get the children even if the parent node is collapsed?
>
> Thank you in advance.
>
Previous Topic:[DataBinding] master-detail binding with non-String properties
Next Topic:TableViewerFocusCellManager and Using Tabulator to Navigate
Goto Forum:
  


Current Time: Sun Jun 01 02:26:52 EDT 2025

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

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

Back to the top