public abstract class HighlightUsagesHandlerBase<T extends PsiElement>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Editor |
myEditor |
protected PsiFile |
myFile |
protected java.lang.String |
myHintText |
protected java.util.List<TextRange> |
myReadUsages |
protected java.lang.String |
myStatusText |
protected java.util.List<TextRange> |
myWriteUsages |
Modifier | Constructor and Description |
---|---|
protected |
HighlightUsagesHandlerBase(Editor editor,
PsiFile file) |
Modifier and Type | Method and Description |
---|---|
protected void |
addOccurrence(PsiElement element) |
protected void |
buildStatusText(java.lang.String elementName,
int refCount) |
abstract void |
computeUsages(java.util.List<? extends T> targets) |
java.lang.String |
getFeatureId() |
java.util.List<TextRange> |
getReadUsages() |
abstract java.util.List<T> |
getTargets() |
java.util.List<TextRange> |
getWriteUsages() |
boolean |
highlightReferences()
In case of egoistic handler (highlightReferences = false) IdentifierHighlighterPass applies information only from this particular handler.
|
void |
highlightUsages() |
protected abstract void |
selectTargets(java.util.List<? extends T> targets,
Consumer<? super java.util.List<? extends T>> selectionConsumer) |
protected final Editor myEditor
protected final PsiFile myFile
protected java.util.List<TextRange> myReadUsages
protected java.util.List<TextRange> myWriteUsages
protected java.lang.String myStatusText
protected java.lang.String myHintText
public void highlightUsages()
protected void buildStatusText(java.lang.String elementName, int refCount)
public abstract java.util.List<T> getTargets()
public java.lang.String getFeatureId()
protected abstract void selectTargets(java.util.List<? extends T> targets, Consumer<? super java.util.List<? extends T>> selectionConsumer)
public abstract void computeUsages(java.util.List<? extends T> targets)
protected void addOccurrence(PsiElement element)
public java.util.List<TextRange> getReadUsages()
public java.util.List<TextRange> getWriteUsages()
public boolean highlightReferences()