Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to contribute menu item to Package Explorer
How to contribute menu item to Package Explorer [message #331408] Fri, 05 September 2008 03:35
yau is currently offline yauFriend
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.
Previous Topic:How to use EditionSelectionDialog
Next Topic:Accessing SharedImages in plugin.xml (for ex. org.eclipse.ui.menus)
Goto Forum:
  


Current Time: Fri Nov 08 22:07:15 GMT 2024

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

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

Back to the top