how to add beforeClick action for a popup menu item added by another plug-in
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 ******************* -->
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.