|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.ui.model.WorkbenchAdapter
Abstract base class with basic implementations of the IWorkbenchAdapter interface. Intended to be subclassed.
| Field Summary | |
protected static Object[] |
NO_CHILDREN
The empty list of children. |
| Constructor Summary | |
WorkbenchAdapter()
|
|
| Method Summary | |
Object[] |
getChildren(Object object)
The default implementation of this IWorkbenchAdapter method
returns the empty list. |
ImageDescriptor |
getImageDescriptor(Object object)
The default implementation of this IWorkbenchAdapter method
returns null. |
String |
getLabel(Object object)
The default implementation of this IWorkbenchAdapter method
returns the empty string if the object is null, and
the object's toString otherwise. |
Object |
getParent(Object object)
The default implementation of this IWorkbenchAdapter method
returns null. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final Object[] NO_CHILDREN
| Constructor Detail |
public WorkbenchAdapter()
| Method Detail |
public Object[] getChildren(Object object)
IWorkbenchAdapter method
returns the empty list. Subclasses may override.
getChildren in interface IWorkbenchAdapterpublic ImageDescriptor getImageDescriptor(Object object)
IWorkbenchAdapter method
returns null. Subclasses may override.
getImageDescriptor in interface IWorkbenchAdapterobject - The object to get an image descriptor for.public String getLabel(Object object)
IWorkbenchAdapter method
returns the empty string if the object is null, and
the object's toString otherwise. Subclasses may override.
getLabel in interface IWorkbenchAdapterpublic Object getParent(Object object)
IWorkbenchAdapter method
returns null. Subclasses may override.
getParent in interface IWorkbenchAdapter
|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||