|
Re: Images in TreeViewer [message #4226 is a reply to message #4155] |
Thu, 01 March 2007 11:24 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Thanks for Your hint. The problem as You describe it has been reported
in bug #175650 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=175650).
This is fixed in CVS HEAD and will be released with the M2 build that we
will publish at the end of this week.
Please feel free to post here or open a bug if any further problems arise.
Regards
RAP Team
Paul Gardiner wrote:
> I have a view that has a TreeView in it, and for some reason the images
> don't work as I expected. When the tree first comes up, it has the folder
> image on each element of the tree. I want some of them to be an image
> called "Computer.jpg". Once I click on an element of the tree, the image
> changes to the correct image, but those that haven't been selected stay as
> the default folder icon. In my createPartControl method, I have the
> following:
>
> TreeViewer viewer = new TreeViewer(parent);
> viewer.setLabelProvider(new ServerTreeViewerLabelProvider());
> viewer.setContentProvider(new ServerTreeViewerContentProvider());
> viewer.setInput(this);
> getSite().setSelectionProvider(viewer);
> // viewer.refresh(); // tried this, but didn't change anything
>
> Any ideas?
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03259 seconds