public class LazySearchResultProvider extends Object implements ILazyTreeContentProvider
TreeViewer.replace(Object, int, Object)
to show it in tree viewer,
otherwise weConstructor and Description |
---|
LazySearchResultProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
addResult(Object tgoRef)
Adds a new result to the cache.
|
void |
dispose() |
protected void |
flushRequestedResults()
Inserts all items that have been requested and returned into the
treeViewer.
|
protected List<Object> |
getCache() |
Object |
getParent(Object element) |
void |
inputChanged(Viewer viewer,
Object oldInput,
Object newInput)
Called when a new query has been set as input.
|
void |
updateChildCount(Object element,
int currentChildCount) |
void |
updateElement(Object parent,
int index) |
public void dispose()
dispose
in interface IContentProvider
public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
inputChanged
in interface IContentProvider
protected void flushRequestedResults()
protected void addResult(Object tgoRef)
singleSearchResult
- the result to add.public void updateElement(Object parent, int index)
updateElement
in interface ILazyTreeContentProvider
public void updateChildCount(Object element, int currentChildCount)
updateChildCount
in interface ILazyTreeContentProvider
public Object getParent(Object element)
getParent
in interface ILazyTreeContentProvider