|Re: Common Navigator - Label Provider [message #498304 is a reply to message #497552]
||Mon, 16 November 2009 11:57
| Mario Winterer
Registered: July 2009
Maybe you could override inputChanged(Viewer, Object, Object) in your
IContentProvider and register an ITreeViewerListener that calls "update"
on the viewer every time the expansion state of an element changes.
(I know, this should be done in the label provider instead, but
unfortunately only the content provider gets access to its viewer)
> Hello guys.
> I have implemented my own Common Navigator for my application, with its
> ContentProvider and LabelProvider. LabelProvider sets up the icons for
> the different nodes. I would like it, for certain nodes, change the icon
> depending if the node is expanded or collapsed. I guess this would be
> easier have the SWT TreeNode, but I want to know if there is a easier
> way - sth like catching the event of expanding an calling the
> Any help would be really appreciated, thanks!
Powered by FUDForum
. Page generated in 0.05095 seconds