How to contribute menu item to Package Explorer [message #331408] |
Fri, 05 September 2008 03:35 |
yau 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.03024 seconds