|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This adapter interface provides visual presentation and hierarchical structure for workbench elements, allowing them to be displayed in the UI without having to know the concrete type of the element.
There is an associate label provider and content provider for showing elements with a registered workbench adapter in JFace structured viewers.
WorkbenchLabelProvider
,
WorkbenchContentProvider
Method Summary | |
Object[] |
getChildren(Object o)
Returns the children of this object. |
ImageDescriptor |
getImageDescriptor(Object object)
Returns an image descriptor to be used for displaying an object in the workbench. |
String |
getLabel(Object o)
Returns the label text for this element. |
Object |
getParent(Object o)
Returns the logical parent of the given object in its tree. |
Method Detail |
public Object[] getChildren(Object o)
public ImageDescriptor getImageDescriptor(Object object)
null
if there is no appropriate image.
object
- The object to get an image descriptor for.public String getLabel(Object o)
public Object getParent(Object o)
null
if there is no parent, or if this object doesn't
belong to a tree.
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |