public interface ISearchResult
AbstractTextSearchResult
uses a flat list of matches to represent the result of a search. Subclasses
of SearchResultEvent
can be used in order to notify listeners
of search result changes.
To present search results to the user implementors of this interface must
also provide an extension for the extension point
org.eclipse.search.searchResultViewPage
.
Clients may implement this interface.
ISearchResultPage
Modifier and Type | Method and Description |
---|---|
void |
addListener(ISearchResultListener l)
Adds a
ISearchResultListener . |
ImageDescriptor |
getImageDescriptor()
Returns an image descriptor for the given ISearchResult.
|
String |
getLabel()
Returns a user readable label for this search result.
|
ISearchQuery |
getQuery()
Returns the query that produced this search result.
|
String |
getTooltip()
Returns a tooltip to be used when this search result is shown in the UI.
|
void |
removeListener(ISearchResultListener l)
Removes a
ISearchResultChangedListener . |
void addListener(ISearchResultListener l)
ISearchResultListener
. Has no effect when the
listener has already been added.l
- the listener to be addedvoid removeListener(ISearchResultListener l)
ISearchResultChangedListener
. Has no effect
when the listener hasn't previously been added.l
- the listener to be removedString getLabel()
String getTooltip()
ImageDescriptor getImageDescriptor()
null
ISearchQuery getQuery()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.