|
Re: How to override in Common Navigation Framework [message #486790 is a reply to message #369127] |
Sat, 19 September 2009 04:49 |
Francis Upton IV Messages: 472 Registered: July 2009 Location: Oakland, CA |
Senior Member |
|
|
Farokh Morshed wrote on Tue, 28 July 2009 14:22 | Here is a question for those that have have worked with the CNF and
contributed to the project explorer...
We override the org.eclipse.ui.navigator.navigatorContent extension point
from our plugin.xml in order to provide a view of our projects in the
project explorer. Our pipeline code customizes the raw content (files) of
the eclipse project according to certain rules and hides the raw files.
We have a bug where the raw files sometimes appear along with the special
nodes that we create in the project explorer. After some debugging, it
appears that the org.eclipse.ui.navigator.resources plugin is invoked for
pipleline processing AFTER our plugin and that is what I believe is adding
the raw files. It is sometimes invoked before and sometimes after. You
can see it when you close then open the project.
I wanted to suppress org.eclipse.ui.navigator.resourceContent, so I tried
the <override> construct, but it didn't work. This construct appears not
to be what I need.
So, I changed our contribution's priority from "high" to "higher". I have
not been able to reproduce the bug after I made this change. But, I
cannot tell if priority is the way to achieve what I want or that I have
really fixed this. Because, the org.eclipse.ui.navigator.resourceContent
priority is "low". Even with priority "high" our plugin would exhibit the
problem. Now with "higher" I cannot reproduce it. Doesn't make sense.
How can I guarantee that our pipleine methods are executed last? Or how
can I suppress the org.eclipse.ui.navigator.resourceContent completely?
|
This is probably caused because the JDT content provider is actually handling the resources and you need to be higher than that which is why "higher" works. If you disable the JDT content provider then "high" should work.
You might want to file a bug about this, as I think the JDT content provider should not be concerned with non-Java resources and that's the source of this confusion.
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.02818 seconds