|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.lang.findUsages.EmptyFindUsagesProvider
public class EmptyFindUsagesProvider
The default empty implementation of the FindUsagesProvider interface.
| Constructor Summary | |
|---|---|
EmptyFindUsagesProvider()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyFindUsagesProvider()
| Method Detail |
|---|
public boolean mayHaveReferences(IElementType token,
short searchContext)
FindUsagesProvider
mayHaveReferences in interface FindUsagesProvidertoken - the token type to check for references.searchContext - represents find usages request,
a combination of constants in UsageSearchContext@Nullable public WordsScanner getWordsScanner()
FindUsagesProvider
getWordsScanner in interface FindUsagesProviderpublic boolean canFindUsagesFor(PsiElement psiElement)
FindUsagesProvider
canFindUsagesFor in interface FindUsagesProviderpsiElement - the element for which usages are searched.
FindManager.canFindUsages(com.intellij.psi.PsiElement)@Nullable public java.lang.String getHelpId(PsiElement psiElement)
FindUsagesProvider
getHelpId in interface FindUsagesProviderpsiElement - the element for which the help topic is requested.
@NotNull public java.lang.String getType(PsiElement element)
FindUsagesProvider
getType in interface FindUsagesProviderelement - the element for which the type is requested.
@NotNull public java.lang.String getDescriptiveName(PsiElement element)
FindUsagesProvider
getDescriptiveName in interface FindUsagesProviderelement - the element for which the name is requested.
@NotNull
public java.lang.String getNodeText(PsiElement element,
boolean useFullName)
FindUsagesProvider
getNodeText in interface FindUsagesProviderelement - 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 | |||||||||