public class PsiReferenceRegistrarImpl extends PsiReferenceRegistrar
DEFAULT_PRIORITY, HIGHER_PRIORITY, LOWER_PRIORITY
Modifier and Type | Method and Description |
---|---|
<T extends PsiElement> |
registerReferenceProvider(ElementPattern<T> pattern,
PsiReferenceProvider provider,
double priority)
Register reference provider with custom priority.
|
<T extends PsiElement> |
registerReferenceProvider(ElementPattern<T> pattern,
PsiReferenceProvider provider,
double priority,
Disposable parentDisposable) |
void |
unregisterReferenceProvider(java.lang.Class scope,
PsiReferenceProvider provider) |
getUserData, putUserData, registerReferenceProvider
public <T extends PsiElement> void registerReferenceProvider(ElementPattern<T> pattern, PsiReferenceProvider provider, double priority)
PsiReferenceRegistrar
registerReferenceProvider
in class PsiReferenceRegistrar
pattern
- reference place description. See StandardPatterns
, PlatformPatterns
and their extenders.provider
- provider to be registeredpriority
- see #DEFAULT_PRIORITY), {@link #HIGHER_PRIORITY}, {@link #LOWER_PRIORITY}public <T extends PsiElement> void registerReferenceProvider(ElementPattern<T> pattern, PsiReferenceProvider provider, double priority, Disposable parentDisposable)
public void unregisterReferenceProvider(java.lang.Class scope, PsiReferenceProvider provider)