Replacement for PsiSearchHelper deprecated findReferences method?

My plugin uses PsiSearchHelper's findReferences(PsiElement, SearchScope, boolean) method to find references to a field within a class. However, this method has been deprecated and I can't find a suitable replacement in PsiSearchHelper.

Any suggestions?

2 comments
Comment actions Permalink

Hello Gordon,

My plugin uses PsiSearchHelper's findReferences(PsiElement,
SearchScope, boolean) method to find references to a field within a
class. However, this method has been deprecated and I can't find a
suitable replacement in PsiSearchHelper.

Any suggestions?


Use the ReferencesSearch class.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Ah, thanks. It helps if I install the dev package for the Javadoc ;)

0

Please sign in to leave a comment.