public class HighlightUsagesHandler extends HighlightHandlerBase
Modifier and Type | Class and Description |
---|---|
static class |
HighlightUsagesHandler.DoHighlightRunnable |
Constructor and Description |
---|
HighlightUsagesHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
collectHighlightRanges(PsiElement element,
TextRange rangeInElement,
java.util.List<? super TextRange> result) |
static void |
collectHighlightRanges(PsiSymbolReference ref,
java.util.List<? super TextRange> result) |
static java.util.List<TextRange> |
collectRangesToHighlight(PsiReference ref,
java.util.List<TextRange> result) |
static <T extends PsiElement> |
createCustomHandler(Editor editor,
PsiFile file) |
static <T extends PsiElement> |
createCustomHandler(Editor editor,
PsiFile file,
ProperTextRange visibleRange) |
static void |
doHighlightElements(Editor editor,
PsiElement [] elements,
TextAttributes attributes,
boolean clearHighlights) |
static TextRange |
getNameIdentifierRange(PsiFile file,
PsiElement element) |
static java.lang.String |
getShortcutText() |
static void |
highlightRanges(HighlightManager highlightManager,
Editor editor,
TextAttributes attributes,
boolean clearHighlights,
java.util.List<? extends TextRange> textRanges) |
static void |
highlightReferences(Project project,
PsiElement element,
java.util.List<? extends PsiReference> refs,
Editor editor,
PsiFile file,
boolean clearHighlights) |
static void |
invoke(Project project,
Editor editor,
PsiFile file) |
static boolean |
isClearHighlights(Editor editor) |
getLineTextErrorStripeTooltip, setupFindModel
public static <T extends PsiElement> HighlightUsagesHandlerBase<T> createCustomHandler(Editor editor, PsiFile file)
public static <T extends PsiElement> HighlightUsagesHandlerBase<T> createCustomHandler(Editor editor, PsiFile file, ProperTextRange visibleRange)
public static void highlightReferences(Project project, PsiElement element, java.util.List<? extends PsiReference> refs, Editor editor, PsiFile file, boolean clearHighlights)
public static TextRange getNameIdentifierRange(PsiFile file, PsiElement element)
public static void doHighlightElements(Editor editor, PsiElement [] elements, TextAttributes attributes, boolean clearHighlights)
public static void highlightRanges(HighlightManager highlightManager, Editor editor, TextAttributes attributes, boolean clearHighlights, java.util.List<? extends TextRange> textRanges)
public static boolean isClearHighlights(Editor editor)
public static java.util.List<TextRange> collectRangesToHighlight(PsiReference ref, java.util.List<TextRange> result)
public static void collectHighlightRanges(PsiSymbolReference ref, java.util.List<? super TextRange> result)
public static void collectHighlightRanges(PsiElement element, TextRange rangeInElement, java.util.List<? super TextRange> result)
public static java.lang.String getShortcutText()