public interface IEditorMatchAdapter
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
method in their search result subclass.
It is assumed that the match adapters are stateless, and no lifecycle management
Clients may implement this interface.
- Determines whether a match should be displayed in the given editor.
For example, if a match is reported in a file, This method should return
true, if the given editor displays the file.
match - The match
editor - The editor that possibly contains the matches element
- whether the given match should be displayed in the editor
- Returns all matches that are contained in the element shown in the given
For example, if the editor shows a particular file, all matches in that file should
result - the result to search for matches
editor - The editor.
- All matches that are contained in the element that is shown in
the given editor.
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.