public interface ISearchEngineResultCollector
This interface is intended to be implemented by clients and passed to the search engine instance.
Modifier and Type | Method and Description |
---|---|
void |
accept(ISearchEngineResult searchResult)
Accepts a new search result object.
|
void |
accept(ISearchEngineResult[] searchResults)
Accepts an array of new search results.
|
void |
error(IStatus status)
Notifies the collector that an error has occured in the search engine.
|
void accept(ISearchEngineResult searchResult)
searchResult
- the new search resultvoid accept(ISearchEngineResult[] searchResults)
searchResults
- an array of search result objectsvoid error(IStatus status)
CoreException
. Use this method to
report errors that are expected to occur from time to time (e.g., server
down, server timeout, incorrect URL etc.).status
- the reported error status
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.