public interface IEditorMatchAdapter
IEditorMatchAdapter
from the getEditorMatchAdapter()
method in their search result subclass.
It is assumed that the match adapters are stateless, and no lifecycle management
is provided.
Clients may implement this interface.
AbstractTextSearchResult
Modifier and Type | Method and Description |
---|---|
Match[] |
computeContainedMatches(AbstractTextSearchResult result,
IEditorPart editor)
Returns all matches that are contained in the element shown in the given
editor.
|
boolean |
isShownInEditor(Match match,
IEditorPart editor)
Determines whether a match should be displayed in the given editor.
|
boolean isShownInEditor(Match match, IEditorPart editor)
true
, if the given editor displays the file.match
- The matcheditor
- The editor that possibly contains the matches elementMatch[] computeContainedMatches(AbstractTextSearchResult result, IEditorPart editor)
result
- the result to search for matcheseditor
- The editor.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.