public static interface BracesMatcher.ContextLocator
BracesMatcher
instances
produced by BracesMatcherFactory
. If implemented, the infrastructure may
call the method to obtain additional context for display along with brace highlight.
See the BraceContext
for more information.Modifier and Type | Method and Description |
---|---|
BraceContext |
findContext(int originOrMatchPosition)
Obtains context for the given text position.
|
BraceContext findContext(int originOrMatchPosition)
BracesMatcher.findOrigin()
or
BracesMatcher.findMatches()
.
Note: the document is not read locked by the caller. If the passed position does
not exist in the document, or seems obsolete, the SPI should return null
.originOrMatchPosition
- position of 'origin' or 'match' bracenull
if the context cannot be provided.