Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [CN] Contribute Open Action to the ResourceNavigator
[CN] Contribute Open Action to the ResourceNavigator [message #319760] Thu, 30 August 2007 20:54 Go to next message
Robert Sanders is currently offline Robert SandersFriend
Messages: 4
Registered: July 2009
Junior Member
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,
Re: [CN] Contribute Open Action to the ResourceNavigator [message #908290 is a reply to message #319760] Wed, 05 September 2012 05:07 Go to previous message
Sreeram R is currently offline Sreeram RFriend
Messages: 2
Registered: July 2009
Junior Member
The above error has occurred because there are no enablement expressions specified for actionProvider element. Once it is specified, the above error is resolved and the given actionProvider is notified of selection change in Resource Navigator view.

I recently faced this issue and found this solution, so may be this could be useful to others Smile
Previous Topic:Please stop adding features.
Next Topic:MultiPageEditor and some probs with it
Goto Forum:
  


Current Time: Thu Nov 27 08:33:01 GMT 2014

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

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