Common Navigator and IMArker [message #544416] |
Fri, 02 July 2010 11:37  |
Eclipse User |
|
|
|
Hello,
I have a problem with my application.
I use a common navigator to display my custom file system.
Of course, each element of my file system is linked to a IResource.
I also added a builder to my project nature. During my build, I add some markers to my resources.
The markers are correctly displayed in my Error view. However, my common navigator view is not refreshed. I see my errors iff I select the corresponding node in the common navigator.
After my build, I tried to perform a workspace.refreshLocal, but nothing works.
Any ideas? Thanks in advance.
Regards,
Philippe BLANC
|
|
|
|
Re: Common Navigator and IMArker [message #551920 is a reply to message #544764] |
Tue, 10 August 2010 03:50  |
Eclipse User |
|
|
|
Calling refresh on a common navigator viewer should not be necessary, since changes in the tree can be handled in the content providers. To do that, declare a navigatorContent extension that overrides org.eclipse.ui.navigator.resourceContent and has a content provider that implements IPipelinedTreeContentProvider. The platform will call the interceptXxx methods when resources change.
However, error markers should already be handled by the platform, so my guess is that you don't use the resourceContent in your view. Still, refreshing the view should not be necessary. I'd recommend using a label decorator instead (use the org.eclipse.ui.decorators extension point).
-Martin
|
|
|
Powered by
FUDForum. Page generated in 0.04098 seconds