|Re: Operation on Collapsed Tree Item [message #856019 is a reply to message #855990]
||Wed, 25 April 2012 09:43
| Ed Merks
Registered: July 2009
You should generally be working with content and label providers, not
directly with tree items. In the later case your question is an SWT
question, not a JFace question. JFace manages the underlying widgets
for you via the providers so you should only operate on the model level
and content/label provider level. I.e., you'd tell the viewer that some
object's label is changed and ensure that the label provider returns the
appropriate new image when asked for the image.
On 25/04/2012 11:14 AM, Snehil Shrivastava wrote:
> Hi All,
> I have created tree using TreeViewer. If I am trying to do any
> operation on collapsed tree items, it does not have any effect.
> For example, if I want to set an image to a child item and I try to
> traverse the tree to find the same, below code returns empty array
> when tree items are collapsed.
> TreeItem items = treeItem.getItems();
> Can any one help on this?
Powered by FUDForum
. Page generated in 0.02993 seconds