org.eclipse.rse.ui.dialogs
Class SystemSimpleContentProvider
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.BaseLabelProvider
org.eclipse.jface.viewers.LabelProvider
org.eclipse.rse.ui.dialogs.SystemSimpleContentProvider
-
All Implemented Interfaces:
-
IBaseLabelProvider,
IContentProvider,
ILabelProvider,
IStructuredContentProvider,
ITreeContentProvider
-
public class SystemSimpleContentProvider
- extends
LabelProvider
- implements
ITreeContentProvider,
ILabelProvider
When we need to populate a TreeViewer in a dialog,
we can use the
SystemSimpleContentElement
class to
represent each element, and then use this provider
to drive the tree.
-
See Also:
-
SystemSimpleContentElement
,
SystemSimpleSelectDialog
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
SystemSimpleContentProvider
public SystemSimpleContentProvider()
- Constructor for SystemSelectFilterPoolContentProvider
getChildren
public
Object[] getChildren(
Object element)
-
-
Specified by:
-
getChildren
in interface
ITreeContentProvider
-
getParent
public
Object getParent(
Object element)
-
-
Specified by:
-
getParent
in interface
ITreeContentProvider
-
hasChildren
public boolean hasChildren(
Object element)
-
-
Specified by:
-
hasChildren
in interface
ITreeContentProvider
-
getElements
public
Object[] getElements(
Object element)
-
-
Specified by:
-
getElements
in interface
IStructuredContentProvider
-
dispose
public void dispose()
-
-
Specified by:
-
dispose
in interface
IBaseLabelProvider
-
Specified by:
-
dispose
in interface
IContentProvider
-
Overrides:
-
dispose
in class
BaseLabelProvider
-
inputChanged
public void inputChanged(
Viewer viewer,
Object oldInput,
Object newInput)
-
-
Specified by:
-
inputChanged
in interface
IContentProvider
-
getImage
public
Image getImage(
Object element)
- Returns the image for the given object.
-
-
Specified by:
-
getImage
in interface
ILabelProvider
-
Overrides:
-
getImage
in class
LabelProvider
-
getText
public
String getText(
Object element)
- Returns the label text for the given object.
-
-
Specified by:
-
getText
in interface
ILabelProvider
-
Overrides:
-
getText
in class
LabelProvider
-
getElement
protected
SystemSimpleContentElement getElement(
Object element)
- Casts the given object to SystemSimpleContentElement
-
-
getImageFromDescriptor
protected
Image getImageFromDescriptor(
ImageDescriptor descriptor)
- Returns the image for the given object, given its image descriptor
-
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.