public interface IWorkbenchAdapter2
IWorkbenchAdapter that allows for color
and font support.
There is an associate label provider and content provider for showing elements with a registered workbench adapter in JFace structured viewers.
IWorkbenchAdapter,
WorkbenchLabelProvider,
BaseWorkbenchContentProvider| 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.
|
RGB getForeground(Object element)
element - the elementnull
to use the default foreground colorRGB getBackground(Object element)
element - the elementnull
to use the default background colorGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.