public abstract class HighlightUsagesHandlerFactoryBase extends java.lang.Object implements HighlightUsagesHandlerFactory
EP_NAME
Constructor and Description |
---|
HighlightUsagesHandlerFactoryBase() |
Modifier and Type | Method and Description |
---|---|
HighlightUsagesHandlerBase |
createHighlightUsagesHandler(Editor editor,
PsiFile file) |
HighlightUsagesHandlerBase |
createHighlightUsagesHandler(Editor editor,
PsiFile file,
ProperTextRange visibleRange) |
abstract HighlightUsagesHandlerBase |
createHighlightUsagesHandler(Editor editor,
PsiFile file,
PsiElement target) |
HighlightUsagesHandlerBase |
createHighlightUsagesHandler(Editor editor,
PsiFile file,
PsiElement target,
ProperTextRange visibleRange) |
public final HighlightUsagesHandlerBase createHighlightUsagesHandler(Editor editor, PsiFile file)
createHighlightUsagesHandler
in interface HighlightUsagesHandlerFactory
public final HighlightUsagesHandlerBase createHighlightUsagesHandler(Editor editor, PsiFile file, ProperTextRange visibleRange)
createHighlightUsagesHandler
in interface HighlightUsagesHandlerFactory
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 externallypublic abstract HighlightUsagesHandlerBase createHighlightUsagesHandler(Editor editor, PsiFile file, PsiElement target)
public HighlightUsagesHandlerBase createHighlightUsagesHandler(Editor editor, PsiFile file, PsiElement target, ProperTextRange visibleRange)