|
Re: Common Navigator showing expanded folders [message #334412 is a reply to message #334395] |
Sat, 07 February 2009 05:42 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Francis Upton IV![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=francisu%40ieee.org) Messages: 472 Registered: July 2009 Location: Oakland, CA |
Senior Member |
|
|
You can get the CommonViewer from the CommonNavigator.getCommonViewer().
This is a normal JFace TreeViewer, from there you can get to the tree.
You can get your CommonNavigator instance by view Id if necessary.
HTH,
Francis
Mark Lovell wrote:
> I am contributing to a common navigator from my plugin.xml
>
> I would like to show different icons for an open "folder" and closed
> "folder". By "folder" I mean things that have children as specified in
> the content provider.
>
> In the navigatorContent, I specify a labelProvider.
>
> I thought that in my label provider's getImage() I could to check the
> expanded state of the tree.
> However, the label provider does not know about the tree that it is
> connected to.
>
> If I programmatically instanciate the label provider, I can pass the
> tree to the constructor, however, when I am configuring it from the
> plugin.xml, I assume the default constructor (i.e. no parameters) is
> used and so I cannot pass in the tree.
>
> Question: How do I show a different icon for open and closed folders,
> when contributing to a common navigator using the plugin.xml file?
>
> Thank you for your help
>
>
--
Common Navigator Framework section in Platform Plugin Developer Guide
(Programmer's Guide)
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/cnf.htm
http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases
You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go
Platform UI Committer for Common Navigator
http://wiki.eclipse.org/index.php/Common_Navigator_Framework
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/cnf.htm
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04145 seconds