Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » how to add beforeClick action for a popup menu item added by another plug-in(pde, popup menu, before click, listener)
icon5.gif  how to add beforeClick action for a popup menu item added by another plug-in [message #546507] Tue, 13 July 2010 08:56
Serkan KIRBAS is currently offline Serkan KIRBASFriend
Messages: 3
Registered: July 2010
Junior Member
Hi,

I'm developing a new Eclipse plug-in which needs to interact with the other 3rd party plug-ins. Here is the definition of a 3rd party plug-in's popup menu for which I would like to implement a beforeClick action:

<!-- **************** POP UP MENUS ******************* -->
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
objectClass="org.eclipse.core.resources.IResource"
adaptable="true"
id="com.ca.harvest.ui.iresourceContributions">
<filter
name="projectPersistentProperty"
value=" org.eclipse.team.core.repository=com.ca.harvest.core.harvest Provider ">
</filter>
<action
label="%commit.label"
icon="icons/small/commit_16.png"
class="com.ca.harvest.ui.actions.TeamCommitAction"
menubarPath="team.main/group3"
enablesFor="+"
id="com.ca.harvest.ui.actions.TeamCommitAction">
</action>
</objectContribution>
</extension>

The action to be taken when this popup menu item is clicked is defined in another plug-in and unfortunately I don't have access to its source code. I need to run a piece of code before the action defined for this popup plug-in is run. I searched for listeners to implement for mouse click events of eclipse but I could find an appropriate one.

I would really appreciate if you can help me on this topic.

Best Regards,
Serkan Kirbas
Previous Topic:Editing an imported plugin
Next Topic:how to add beforeClick action for a popup menu item added by another plug-in
Goto Forum:
  


Current Time: Fri Apr 26 06:15:41 GMT 2024

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

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

Back to the top