public class TreePropertyContentProvider extends java.lang.Object implements org.eclipse.jface.viewers.IStructuredContentProvider, IUpdateableListener
TableViewer
of
TreeProperty
s. When the associated TreeComposite
is updated,
the TableViewer
should also be refreshed accordingly.
The input of the TableViewer
that is using this content provider
is expected to be a single TreeComposite
.
component
Constructor and Description |
---|
TreePropertyContentProvider() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
java.lang.Object[] |
getElements(java.lang.Object inputElement) |
void |
inputChanged(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object oldInput,
java.lang.Object newInput) |
void |
update(IUpdateable component)
If the current
tree has updated, we need to refresh the
tableViewer to reflect the changes to the tree. |
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IContentProvider
public void inputChanged(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object oldInput, java.lang.Object newInput)
inputChanged
in interface org.eclipse.jface.viewers.IContentProvider
public java.lang.Object[] getElements(java.lang.Object inputElement)
getElements
in interface org.eclipse.jface.viewers.IStructuredContentProvider
public void update(IUpdateable component)
tree
has updated, we need to refresh the
tableViewer
to reflect the changes to the tree.update
in interface IUpdateableListener
component
- The component that was updated in some way.