Run method when cursor is in specific function argument Follow
I am trying to extend my plugin, but I require some help yet again! I want to show the user a small pop-up, or some other visual indication with text when the cursor is within the parameters of the Translate function (in PHP), shown as following:
The plugin is supposed to use the number underneath the cursor, find the coresponding index in other php file, and show the coresponding translation for the user somewhere in the IDE. So first things first, how do I trigger any method in the plugin, when the cursor is within the parameters? I thought of inspections, but those wont work in this case. Actions cant be triggered like this, can they?
Please sign in to leave a comment.
I'd try CaretListener, just as is done in SubstitutionShortInfoHandler. It can be installed in some StartupActivity:
Thanks, the following code worked: