Control+ click from multiple plugin


Hello All, 


      I have 2 plugin installed with plugin 1 uses "psi.referencecontributor" to navigate to implementation file using (Ctrl + click) from a source file.I have another plugin installed that captures current cursor text and navigates to the target file using (Alt + click) shortcut. Is it feasible for Plugin2 to be invoked first with Ctrl+click shortcut and if it could not find the target file then invoke plugin 1 action to navigate to target file?




Sure, you can use a Messaging Infrastructure to communicate between plugins. Simply make Plugin 1 a subscriber; Plugin 2 - if the requirements to invoke an action are not fulfilled - will publish an event that Plugin 1 will receive and invoke its action.