|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface serves as an adapter between matches and editors. It is used to
highlight matches in editors. Search implementors who want their matches highlighted
must return an implementation of 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
Method Summary | |
---|---|
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. |
Method Detail |
public boolean isShownInEditor(Match match, IEditorPart editor)
true
, if the given editor displays the file.
match
- The matcheditor
- The editor that possibly contains the matches element
public Match[] computeContainedMatches(AbstractTextSearchResult result, IEditorPart editor)
result
- the result to search for matcheseditor
- The editor.
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.