Package org.eclipse.handly.ui.search
Class SearchTableContentProvider
java.lang.Object
org.eclipse.handly.ui.search.SearchTableContentProvider
- All Implemented Interfaces:
ISearchContentProvider
,org.eclipse.jface.viewers.IContentProvider
,org.eclipse.jface.viewers.IStructuredContentProvider
A default implementation of
ISearchContentProvider
for the table viewer.-
Constructor Summary
ConstructorDescriptionCreates a new content provider for the given search result page. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Notifies that all elements have been removed from the displayed search result.void
elementsChanged
(Object[] elements) Notifies that the set of matches for the given elements has changed.Object[]
getElements
(Object inputElement) protected AbstractSearchResultPage
getPage()
Returns the search result page passed into the constructor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
dispose, inputChanged
-
Constructor Details
-
SearchTableContentProvider
Creates a new content provider for the given search result page.- Parameters:
page
- notnull
-
-
Method Details
-
getElements
-
clear
public void clear()Description copied from interface:ISearchContentProvider
Notifies that all elements have been removed from the displayed search result.This method is guaranteed to be called in the UI thread. Note that this notification is asynchronous, i.e., further changes may have occurred by the time this method is called. They will be described in a future call.
-
elementsChanged
Description copied from interface:ISearchContentProvider
Notifies that the set of matches for the given elements has changed.This method is guaranteed to be called in the UI thread. Note that this notification is asynchronous, i.e., further changes may have occurred by the time this method is called. They will be described in a future call.
- Parameters:
elements
- nevernull
-
getPage
Returns the search result page passed into the constructor.- Returns:
- the search result page (never
null
)
-