multiResolve() doesn't allow the user to choose a navigation target

According to http://www.jetbrains.org/intellij/sdk/docs/reference_guide/custom_language_support/references_and_resolve.html 

"An extension of the PsiReference interface, which allows a reference to resolve to multiple targets, is the PsiPolyVariantReference interface. The targets to which the reference resolves are returned from the multiResolve() method. The Go to Declaration action for such references allows the user to choose a navigation target."

I implemented multiResolve() but didn't see the options that are returned from the multiResolve() method. Is there any other place that I should take care of? Thanks!

8 comments
Comment actions Permalink

does your multiresolve return multiple results?

0
Comment actions Permalink

.. and no options popup appears when you click on an element and multiple results are returned?

0
Comment actions Permalink

do the elements returned by multiResolve implement 

getNameIdentifier 
getReference
getReferences
 getPresentation

?

0
Comment actions Permalink

I have this same problem, I haven't had time to investigate it yet. I never seem to get the popup when a symbol resolves to multiple targets.

0
Comment actions Permalink

Please post/link a sample to reproduce.

 

0

Please sign in to leave a comment.