@Deprecated public class FieldAssistColors extends Object
Color resources that are returned using methods in this class are maintained in the JFace color registries, or by SWT. Users of any color resources provided by this class are not responsible for the lifecycle of the color. Colors provided by this class should never be disposed by clients. In some cases, clients are provided information, such as RGB values, in order to create their own color resources. In these cases, the client should manage the lifecycle of any created resource.
Constructor and Description |
---|
FieldAssistColors()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RGB |
computeErrorFieldBackgroundRGB(Control control)
Deprecated.
Compute the RGB of the color that should be used for the background of a
control to indicate that the control has an error.
|
static Color |
getRequiredFieldBackgroundColor(Control control)
Deprecated.
Return the color that should be used for the background of a control to
indicate that the control is a required field and does not have content.
|
public static RGB computeErrorFieldBackgroundRGB(Control control)
This color is computed dynamically each time that it is queried. Clients should typically call this method once, create a color from the RGB provided, and dispose of the color when finished using it.
control
- the control for which the background color should be computed.public static Color getRequiredFieldBackgroundColor(Control control)
This color is managed by FieldAssistResources and should never be disposed by clients.
control
- the control on which the background color will be used.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.