public interface HighlightUsagesHandlerFactory
HighlightUsagesHandlerFactoryBase
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<HighlightUsagesHandlerFactory> |
EP_NAME |
Modifier and Type | Method and Description |
---|---|
HighlightUsagesHandlerBase |
createHighlightUsagesHandler(Editor editor,
PsiFile file) |
default HighlightUsagesHandlerBase |
createHighlightUsagesHandler(Editor editor,
PsiFile file,
ProperTextRange visibleRange) |
static final ExtensionPointName<HighlightUsagesHandlerFactory> EP_NAME
HighlightUsagesHandlerBase createHighlightUsagesHandler(Editor editor, PsiFile file)
default HighlightUsagesHandlerBase createHighlightUsagesHandler(Editor editor, PsiFile file, ProperTextRange visibleRange)
visibleRange
- To avoid parsing in EDT, these factory methods should be called in a background thread
(as implementation use the PSI element under cursor to choose the specific handler).
However, some handlers require the editor visible range, which must be calculated in EDT,
so it's passed externally