| [news.eclipse.platform] Re: Common Navigator and the selection service |
Hi,
I remember that it is related to the ResourceLinkHelper (org.eclipse.ui.navigator.resources) .
The link helper is used to convert an IEditorInput into an IFile, and the adapted IFile is selected in your navigator. So if your editor displays IEditorInput and your navigator shows IResources objects i think you just have to do this :
<extension point="org.eclipse.ui.navigator.viewer"> [...] <viewerContentBinding viewerId="your.id"> <includes> <contentExtension pattern="org.eclipse.ui.navigator.resources.linkHelper"/> </viewerContentBinding> [..]
Thanks - I'll give that a try.
Eric
Eric Rizzo a écrit :Is there some material that demonstrates how to integrate a custom common navigator with the selection service so that the selection of the navigator viewer correctly follows the active editor?
My project has a CommonNavigator-based view but even with the "Synchronize with editor" option enabled in the UI, its selection does not follow editor activation. The Navigator view does, even with our own custom editors.
There seems to me precious little information about CNF out there and this seems to be one of the dark corners; anyone have any pointers?
TIA, Eric