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 color
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.