Java method suggestions in XML files
Answered
Hey,
I'm creating an IntelliJ plugin that should provide custom suggestions/autocomplete options in XML files. What I've been able to do so far is retrieve information about methods from a given Java class into a list of PsiMethod objects and create suggestions using the CompletionProvider and CompletionContributor classes. However, this only provides the suggestions in the form of method names, not method references. Is is possible to create suggestions of method references, so I can utilize all of the features that come with that (argument type hints etc.)?
Thanks in advance.
Please sign in to leave a comment.
I figured it out, I needed to use the PsiReferenceContributor, it is working perfectly now.