public class ArrayContentProvider extends Object implements IStructuredContentProvider
IStructuredContentProvider
handles
the case where the viewer input is an unchanging array or collection of elements.
This class is not intended to be subclassed outside the viewer framework.
Constructor and Description |
---|
ArrayContentProvider() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
This implementation does nothing.
|
Object[] |
getElements(Object inputElement)
Returns the elements in the input, which must be either an array or a
Collection . |
void |
inputChanged(Viewer viewer,
Object oldInput,
Object newInput)
This implementation does nothing.
|
public Object[] getElements(Object inputElement)
Collection
.getElements
in interface IStructuredContentProvider
inputElement
- the input elementpublic void inputChanged(Viewer viewer, Object oldInput, Object newInput)
inputChanged
in interface IContentProvider
viewer
- the vieweroldInput
- the old input element, or null
if the viewer
did not previously have an inputnewInput
- the new input element, or null
if the viewer
does not have an inputpublic void dispose()
dispose
in interface IContentProvider
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.