|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.model.WorkbenchAdapter
public abstract class 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 | |
|---|---|
RGB |
getBackground(Object element)
The default implementation of this IWorkbenchAdapter2 method
returns null. |
Object[] |
getChildren(Object object)
The default implementation of this IWorkbenchAdapter method
returns the empty list. |
FontData |
getFont(Object element)
The default implementation of this IWorkbenchAdapter2 method
returns null. |
RGB |
getForeground(Object element)
The default implementation of this IWorkbenchAdapter2 method
returns null. |
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. |
StyledString |
getStyledText(Object object)
The default implementation of this IWorkbenchAdapter3 method
returns the StyledString which wraps the label of the element. |
| 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 IWorkbenchAdapterobject - The object to get the children for.
public 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 IWorkbenchAdapterobject - The object to get a label for.
public Object getParent(Object object)
IWorkbenchAdapter method
returns null. Subclasses may override.
getParent in interface IWorkbenchAdapterobject - The object to get the parent for.
public RGB getBackground(Object element)
IWorkbenchAdapter2 method
returns null. Subclasses may override.
getBackground in interface IWorkbenchAdapter2element - the element
null
to use the default background colorpublic RGB getForeground(Object element)
IWorkbenchAdapter2 method
returns null. Subclasses may override.
getForeground in interface IWorkbenchAdapter2element - the element
null
to use the default foreground colorpublic FontData getFont(Object element)
IWorkbenchAdapter2 method
returns null. Subclasses may override.
getFont in interface IWorkbenchAdapter2element - the element
null
to use the default fontpublic StyledString getStyledText(Object object)
IWorkbenchAdapter3 method
returns the StyledString which wraps the label of the element.
Subclasses may override.
getStyledText in interface IWorkbenchAdapter3object - the element to evaluate the styled string for
StyledString which wraps the label of the
element.
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.