I'm writing a plugin that extends the Properties functionality by adding a new context menu to the Structure view. When I right-click on a property in a Structure view, I invoke a custom action which needs to send the information about the property elsewhere. Unfortunately I cannot figure out how to obtain that information in my actionPerformed() method. How can I know which property is currently selected? And how do I get the value of this property? I was able to obtain a PsiFile from AnActionEvent but that's where I got stuck.
Thanks in advance for any help!
P.S. Also, I can't figure out how to add the properties plugin dependency to my Gradle build. How can I find its group ID and artifact ID?