[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[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>
[..]
If you are not using IResources in your navigator, you can declare a new
linkhelper via the org.eclipse.ui.navigator.linkHelper extension point.
Use the help to see how the
org.eclipse.ui.navigator.resources.linkHelper is declared.
Hope it helps.
Valère.
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