public interface IFileMatchAdapter
IFileinstances. Changes to those files are then tracked (via the platforms file buffer mechanism) and matches updated when changes are saved. Clients who want their match positions automatically updated should return an implementation of
getFileMatchAdapter()method in their search result implementation. It is assumed that the match adapters are stateless, and no lifecycle management is provided.
Clients may implement this interface.
|Modifier and Type||Method and Description|
Returns an array with all matches contained in the given file in the given search result.
Returns the file associated with the given element (usually the file the element is contained in).
Match computeContainedMatches(AbstractTextSearchResult result, IFile file)
IFile, this method must return an empty array.
result- the search result to find matches in
file- the file to find matches in
element- an element associated with a match
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.