public abstract class DebugElementWorkbenchAdapter extends Object implements IWorkbenchAdapter, IWorkbenchAdapter2
Clients may subclass this class to provide custom adapters for elements in a debug
model. The debug platform provides IWorkbenchAdapters for the standard debug
elements. Clients may override the default content in the debug view by providing an
IWorkbenchAdapter or IDeferredWorkbenchAdapter for a debug
element.
| Constructor and Description |
|---|
DebugElementWorkbenchAdapter() |
| Modifier and Type | Method and Description |
|---|---|
RGB |
getBackground(Object element)
Provides a background color for the given element.
|
FontData |
getFont(Object element)
Provides a font the given element.
|
RGB |
getForeground(Object element)
Provides a foreground color for the given element.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildren, getParentpublic ImageDescriptor getImageDescriptor(Object object)
IWorkbenchAdapternull if there is no appropriate image.getImageDescriptor in interface IWorkbenchAdapterobject - The object to get an image descriptor for.public String getLabel(Object o)
IWorkbenchAdaptergetLabel in interface IWorkbenchAdaptero - The object to get a label for.public RGB getForeground(Object element)
IWorkbenchAdapter2getForeground in interface IWorkbenchAdapter2element - the elementnull
to use the default foreground colorpublic RGB getBackground(Object element)
IWorkbenchAdapter2getBackground in interface IWorkbenchAdapter2element - the elementnull
to use the default background colorpublic FontData getFont(Object element)
IWorkbenchAdapter2getFont in interface IWorkbenchAdapter2element - the elementnull
to use the default fontGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.