[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Adding the CommonNavigator PopupMenu to my View

Kevin,

Within the plugin.xml file where you define your CommonNavigator configuration you need a viewer action binding that will inherit those actions - something like this:

<viewerActionBinding
viewerId="com.mycompany.ui.views.navigator">
<includes>
<actionExtension pattern="org.eclipse.ui.navigator.resources.PortingActions"/>
<actionExtension pattern="org.eclipse.ui.navigator.resources.ResourceMgmtActions"/>
</includes>
</viewerActionBinding>



Shawn

Kevin Oberg wrote:
Here is my trouble:

I have a view that generates lists of files based on a query I run for my Clearcase version control system. My TreeViewer holds a list of commands run and beneath each of these are all the output generated by them, which is always a list of files and directories that were found to match the query that was run.

What I want/need to do is make the popup menu for this viewer be the same one that is accessible from the Project/Package explorer and Navigator viewers. Long story short, I have spent way too much time trying to figure this out to no avail, though I am certain that this is a very simple if not trivial task.

Any suggestions are appreciated, as well as any obvious solutions that I have overlooked!

Kevin