Interface IIndexableLazyContentProvider

All Superinterfaces:
IContentProvider, ILazyContentProvider

public interface IIndexableLazyContentProvider extends ILazyContentProvider
Adds efficient element indexing support to ILazyContentProvider.
  • Method Details

    • findElement

      int findElement(Object element)
      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 implement StructuredViewer#setSelection(ISelection) more efficiently.
      element - the element to find within the contents served here
      the zero-based index of the element, or -1 if the element is not found