Package org.eclipse.jface.viewers
Interface IIndexableLazyContentProvider
- All Superinterfaces:
IContentProvider
,ILazyContentProvider
Adds efficient element indexing support to ILazyContentProvider.
- Since:
- 3.5
-
Method Summary
Modifier and TypeMethodDescriptionint
findElement
(Object element) Find the row index of the parameter element in the set of contents provided by this object.Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
dispose, inputChanged
Methods inherited from interface org.eclipse.jface.viewers.ILazyContentProvider
updateElement
-
Method Details
-
findElement
Find the row index of the parameter element in the set of contents provided by this object. Under normal usage, this method will only be used to implementStructuredViewer#setSelection(ISelection)
more efficiently.- Parameters:
element
- the element to find within the contents served here- Returns:
- the zero-based index of the element, or -1 if the element is not found
-