How to show `Find Usages` for references
Answered
I am writing a plugin for mybatis but now have two problem with reference
1. I wirte a custom PsiReferenceContributor to make the BaseResultMap reference to XmlAttributeValue.
But when i ctrl + left mouse it the dialog is Choose Declaration how can make it show the Find Usages dialog like the below screenshot.


2. I don't write ReferenceContributor for the interface, only use the dom CustomReferenceConverter but the class can still resolve to the xml tag, but it not work on XmlAttribute, can make the XmlAtribute resovle eachothre like the Class only use the CustomReferenceConverter
Please sign in to leave a comment.
1. do you have `@NameValue` for the "id" attribute in your DOM?
2. sorry I don't understand this question
Please also share your code.
The @NameValue is work. it also resolve my 2nd problem. Thanks very much