IWorkbenchAdapter
. Custom content is currently supported
by a provisional internal viewer framework.@Deprecated 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()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
RGB |
getBackground(Object element)
Deprecated.
Provides a background color for the given element.
|
FontData |
getFont(Object element)
Deprecated.
Provides a font the given element.
|
RGB |
getForeground(Object element)
Deprecated.
Provides a foreground color for the given element.
|
ImageDescriptor |
getImageDescriptor(Object object)
Deprecated.
Returns an image descriptor to be used for displaying an object in the workbench.
|
String |
getLabel(Object o)
Deprecated.
Returns the label text for this element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, getParent
public ImageDescriptor getImageDescriptor(Object object)
IWorkbenchAdapter
null
if there is no appropriate image.getImageDescriptor
in interface IWorkbenchAdapter
object
- The object to get an image descriptor for.public String getLabel(Object o)
IWorkbenchAdapter
getLabel
in interface IWorkbenchAdapter
o
- The object to get a label for.public RGB getForeground(Object element)
IWorkbenchAdapter2
getForeground
in interface IWorkbenchAdapter2
element
- the elementnull
to use the default foreground colorpublic RGB getBackground(Object element)
IWorkbenchAdapter2
getBackground
in interface IWorkbenchAdapter2
element
- the elementnull
to use the default background colorpublic FontData getFont(Object element)
IWorkbenchAdapter2
getFont
in interface IWorkbenchAdapter2
element
- the elementnull
to use the default font
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.