how to add beforeClick action for a popup menu item added by another plug-in [message #606257] |
Tue, 13 July 2010 08:56 |
Serkan KIRBAS 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
|
|
|
Powered by
FUDForum. Page generated in 0.02595 seconds