How to contribute menu item to Package Explorer [message #331408] |
Fri, 05 September 2008 03:35 |
yau![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=dwserver2%40vip.163.com) Messages: 14 Registered: July 2009 |
Junior Member |
|
|
Hi,
I have defined an action provider, and it was successfully attached to the
popup menu of the Project Explorer, but, failed for Package Explorer.
The extension definition is as follow:
===========================================
<extension
point="org.eclipse.ui.navigator.navigatorContent">
<actionProvider
class="net.yau.tools.messages.sync.actions.MsgSyncActionProvider "
id="net.yau.tools.messages.sync.actions.MsgSyncActionProvider ">
<enablement>
<instanceof
value="org.eclipse.core.resources.IFile">
</instanceof>
</enablement>
</actionProvider>
</extension>
<extension
point="org.eclipse.ui.navigator.viewer">
<viewerActionBinding
viewerId="org.eclipse.ui.navigator.ProjectExplorer">
<includes>
<actionExtension
pattern="net.yau.tools.messages.sync.actions.MsgSyncActionProvider ">
</actionExtension>
</includes>
</viewerActionBinding>
<viewerActionBinding
viewerId="org.eclipse.jdt.ui.PackageExplorer">
<includes>
<actionExtension
pattern="net.yau.tools.messages.sync.actions.MsgSyncActionProvider ">
</actionExtension>
</includes>
</viewerActionBinding>
</extension>
===========================================
So, how to contribute menu item to "Package Explorer"?
Thanks,
Yau K.J.
|
|
|
Powered by
FUDForum. Page generated in 0.04404 seconds