public class StoresViewContentProvider extends java.lang.Object implements org.eclipse.jface.viewers.ITreeContentProvider, IModelListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
StoresViewContentProvider() |
Modifier and Type | Method and Description |
---|---|
void | dispose()
Releases resources and dispose the content provider.
|
java.lang.Object[] | getChildren(java.lang.Object parentElement)
Returns the child elements of the given parent element.
|
java.lang.Object[] | getElements(java.lang.Object inputElement)
Returns the elements to display in the viewer when its input is set to the given element.
|
java.lang.Object | getParent(java.lang.Object element)
Returns the parent for the given element, or null indicating that the parent can not be computed.
|
org.eclipse.jface.viewers.TreeViewer | getViewer()
Returns the viewer for this content provider.
|
boolean | hasChildren(java.lang.Object element)
Returns whether the given element has children.
|
void | inputChanged(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object oldInput, java.lang.Object newInput)
Notifies this content provider that the given viewer's input has been switched to a different element.
|
void | modelChanged(ModelObjectChangedEvent modelPropertyChangedEvent)
Call back method invoked when the model is changed.
|
public static final java.lang.String COPYRIGHT
public void dispose()
public void inputChanged(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object oldInput, java.lang.Object newInput)
A typical use for this method is registering the content provider as a listener to changes on the new input (using model-specific means). And removing the viewer from the old input. In response to these change notifications, the content provider propagates the changes to the viewer.
public java.lang.Object[] getChildren(java.lang.Object parentElement)
public java.lang.Object[] getElements(java.lang.Object inputElement)
public java.lang.Object getParent(java.lang.Object element)
public boolean hasChildren(java.lang.Object element)
public void modelChanged(ModelObjectChangedEvent modelPropertyChangedEvent)
public org.eclipse.jface.viewers.TreeViewer getViewer()