public class ColorPropertyDescriptor extends PropertyDescriptor
This class may be instantiated; it is not intended to be subclassed.
Example:
IPropertyDescriptor pd = new ColorPropertyDescriptor("fg", "Foreground Color");
Constructor and Description |
---|
ColorPropertyDescriptor(Object id,
String displayName)
Creates an property descriptor with the given id and display name.
|
Modifier and Type | Method and Description |
---|---|
CellEditor |
createPropertyEditor(Composite parent)
The
ColorPropertyDescriptor implementation of this
IPropertyDescriptor method creates and returns a new
ColorCellEditor . |
getAlwaysIncompatible, getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider, getValidator, isCompatibleWith, isLabelProviderSet, setAlwaysIncompatible, setCategory, setDescription, setFilterFlags, setHelpContextIds, setLabelProvider, setValidator
public CellEditor createPropertyEditor(Composite parent)
ColorPropertyDescriptor
implementation of this
IPropertyDescriptor
method creates and returns a new
ColorCellEditor
.
The editor is configured with the current validator if there is one.
createPropertyEditor
in interface IPropertyDescriptor
createPropertyEditor
in class PropertyDescriptor
parent
- the parent widget for the cell editornull
if this
property cannot be edited
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.