|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.views.properties.PropertyDescriptor | +--org.eclipse.ui.views.properties.ColorPropertyDescriptor
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");
Constructor Summary | |
ColorPropertyDescriptor(Object id,
String displayName)
Creates an property descriptor with the given id and display name. |
Method Summary | |
CellEditor |
createPropertyEditor(Composite parent)
The ColorPropertyDescriptor implementation of this
IPropertyDescriptor method creates and returns a new
ColorCellEditor . |
Methods inherited from class org.eclipse.ui.views.properties.PropertyDescriptor |
getAlwaysIncompatible, getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider, getValidator, isCompatibleWith, setAlwaysIncompatible, setCategory, setDescription, setFilterFlags, setHelpContextIds, setLabelProvider, setValidator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ColorPropertyDescriptor(Object id, String displayName)
id
- the id of the propertydisplayName
- the name to display for the propertyMethod Detail |
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 editor
null
if this
property cannot be edited
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |