Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to override in Common Navigation Framework
How to override in Common Navigation Framework [message #369127] Tue, 28 July 2009 18:22 Go to next message
Farokh Morshed is currently offline Farokh MorshedFriend
Messages: 53
Registered: July 2009
Member
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?
Re: How to override in Common Navigation Framework [message #486790 is a reply to message #369127] Sat, 19 September 2009 04:49 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
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.


Previous Topic:Common Navigator Sorting Issues
Next Topic:Common Navigator fails to refresh on addition/deletion
Goto Forum:
  


Current Time: Tue Mar 19 05:31:46 GMT 2024

Powered by FUDForum. Page generated in 0.02654 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top