| org.eclipse.ui.model.IWorkbenchAdapter2
All known Subclasses: org.eclipse.ui.model.WorkbenchAdapter,
IWorkbenchAdapter2 | public interface IWorkbenchAdapter2 (Code) | | Extension interface for 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.
See Also: IWorkbenchAdapter See Also: WorkbenchLabelProvider See Also: BaseWorkbenchContentProvider since: 3.0 |
Method Summary | |
public RGB | getBackground(Object element) Provides a background color for the given element. | public FontData | getFont(Object element) Provides a font the given element. | public RGB | getForeground(Object element) Provides a foreground color for the given element. |
getBackground | public RGB getBackground(Object element)(Code) | | Provides a background color for the given element.
Parameters: element - the element the background color for the element, or null to use the default background color |
getFont | public FontData getFont(Object element)(Code) | | Provides a font the given element.
Parameters: element - the element the font for the element, or null to use the default font |
getForeground | public RGB getForeground(Object element)(Code) | | Provides a foreground color for the given element.
Parameters: element - the element the foreground color for the element, or null to use the default foreground color |
|
|