[CN] Contribute Open Action to the ResourceNavigator [message #319760] |
Thu, 30 August 2007 16:54  |
Eclipse User |
|
|
|
I'm fairly new to developing Eclipse plugins; and I'm really struggling
with some points. My current issue is: I have my own Perspective
defined and it is displaying the ResourceNavigator view, which shows up
fine; however I can not seem to figure out how to contribute an an
actionExtension (if that is what I need to do) in order to conditionally
override the "Open" / double-click behavior.
For those interested: I want to open non-editable files in a viewer. I
know others have done this; but right now I am feeling pretty lost on
how to get started - this is after searching through the archives and
reading the articles that Michael Elder wrote on the Common Navigator
Framework.
The "closest" I have come is the following; which when run generates the
error "Incorrect number of expressions: enablement in navigator
extension: null in plugin net.ipov.desktop.media":
<extension
point="org.eclipse.ui.navigator.navigatorContent">
<actionProvider
class="net.ipov.desktop.media.MediaOpenActionProvider"
id="net.ipov.desktop.media.mediaOpenActionProvider" />
</extension>
<extension
point="org.eclipse.ui.navigator.viewer">
<viewerActionBinding
viewerId="org.eclipse.ui.views.ResourceNavigator">
<includes>
<actionExtension
pattern="net.ipov.desktop.media.mediaOpenActionProvider" />
</includes>
</viewerActionBinding>
</extension>
Any help or just pointers to existing examples would be terrific.
Thanks,
|
|
|
|
Powered by
FUDForum. Page generated in 0.25180 seconds