|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FindUsagesProvider
Defines the support for the "Find Usages" feature in a custom language.
Language.getFindUsagesProvider()| Method Summary | |
|---|---|
boolean |
canFindUsagesFor(PsiElement psiElement)
Checks if it makes sense to search for usages of the specified element. |
java.lang.String |
getDescriptiveName(PsiElement element)
Returns an expanded user-visible name of the specified element, shown in the "Find Usages" dialog. |
java.lang.String |
getHelpId(PsiElement psiElement)
Returns the ID of the help topic which is shown when the specified element is selected in the "Find Usages" dialog. |
java.lang.String |
getNodeText(PsiElement element,
boolean useFullName)
Returns the text representing the specified PSI element in the Find Usages tree. |
java.lang.String |
getType(PsiElement element)
Returns the user-visible type of the specified element, shown in the "Find Usages" dialog (for example, "class" or "variable"). |
WordsScanner |
getWordsScanner()
Gets the word scanner for building a word index for the specified language. |
boolean |
mayHaveReferences(IElementType token,
short searchContext)
Checks if tokens of the specified type can contain references when the search is done with the specified context. |
| Method Detail |
|---|
boolean mayHaveReferences(IElementType token,
short searchContext)
token - the token type to check for references.searchContext - represents find usages request,
a combination of constants in UsageSearchContext@Nullable WordsScanner getWordsScanner()
boolean canFindUsagesFor(PsiElement psiElement)
psiElement - the element for which usages are searched.
FindManager.canFindUsages(com.intellij.psi.PsiElement)@Nullable java.lang.String getHelpId(PsiElement psiElement)
psiElement - the element for which the help topic is requested.
@NotNull java.lang.String getType(PsiElement element)
element - the element for which the type is requested.
@NotNull java.lang.String getDescriptiveName(PsiElement element)
element - the element for which the name is requested.
@NotNull
java.lang.String getNodeText(PsiElement element,
boolean useFullName)
element - the element for which the node text is requested.useFullName - if true, the returned text should use fully qualified names
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||