Package org.eclipse.ui.views.properties
Class ColorPropertyDescriptor
java.lang.Object
org.eclipse.ui.views.properties.PropertyDescriptor
org.eclipse.ui.views.properties.ColorPropertyDescriptor
- All Implemented Interfaces:
IPropertyDescriptor
Descriptor for a property that has a color value which should be edited with
a color cell editor.
This class may be instantiated; it is not intended to be subclassed.
Example:
IPropertyDescriptor pd = new ColorPropertyDescriptor("fg", "Foreground Color");
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
ConstructorsConstructorDescriptionColorPropertyDescriptor(Object id, String displayName) Creates an property descriptor with the given id and display name. -
Method Summary
Modifier and TypeMethodDescriptioncreatePropertyEditor(Composite parent) TheColorPropertyDescriptorimplementation of thisIPropertyDescriptormethod creates and returns a newColorCellEditor.Methods inherited from class org.eclipse.ui.views.properties.PropertyDescriptor
getAlwaysIncompatible, getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider, getValidator, isCompatibleWith, isLabelProviderSet, setAlwaysIncompatible, setCategory, setDescription, setFilterFlags, setHelpContextIds, setLabelProvider, setValidator
-
Constructor Details
-
ColorPropertyDescriptor
Creates an property descriptor with the given id and display name.- Parameters:
id- the id of the propertydisplayName- the name to display for the property
-
-
Method Details
-
createPropertyEditor
TheColorPropertyDescriptorimplementation of thisIPropertyDescriptormethod creates and returns a newColorCellEditor.The editor is configured with the current validator if there is one.
- Specified by:
createPropertyEditorin interfaceIPropertyDescriptor- Overrides:
createPropertyEditorin classPropertyDescriptor- Parameters:
parent- the parent widget for the cell editor- Returns:
- the cell editor for this property, or
nullif this property cannot be edited
-