|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.debug.ui.DebugElementWorkbenchAdapter
Common function for debug element workbench adapters.
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 Summary | |
---|---|
DebugElementWorkbenchAdapter()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.model.IWorkbenchAdapter |
---|
getChildren, getParent |
Constructor Detail |
public DebugElementWorkbenchAdapter()
Method Detail |
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 element
null
to use the default foreground colorpublic RGB getBackground(Object element)
IWorkbenchAdapter2
getBackground
in interface IWorkbenchAdapter2
element
- the element
null
to use the default background colorpublic FontData getFont(Object element)
IWorkbenchAdapter2
getFont
in interface IWorkbenchAdapter2
element
- the element
null
to use the default font
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.