Package org.eclipse.ui.views.properties
Class TextPropertyDescriptor
- java.lang.Object
-
- org.eclipse.ui.views.properties.PropertyDescriptor
-
- org.eclipse.ui.views.properties.TextPropertyDescriptor
-
- All Implemented Interfaces:
IPropertyDescriptor
public class TextPropertyDescriptor extends PropertyDescriptor
Descriptor for a property that has a value which should be edited with a text cell editor.This class may be instantiated; it is not intended to be subclassed.
Example:
IPropertyDescriptor pd = new TextPropertyDescriptor("surname", "Last Name");
- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Constructor Summary
Constructors Constructor Description TextPropertyDescriptor(Object id, String displayName)
Creates an property descriptor with the given id and display name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CellEditor
createPropertyEditor(Composite parent)
TheTextPropertyDescriptor
implementation of thisIPropertyDescriptor
method creates and returns a newTextCellEditor
.-
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
-
-
-
-
Method Detail
-
createPropertyEditor
public CellEditor createPropertyEditor(Composite parent)
TheTextPropertyDescriptor
implementation of thisIPropertyDescriptor
method creates and returns a newTextCellEditor
.The editor is configured with the current validator if there is one.
- Specified by:
createPropertyEditor
in interfaceIPropertyDescriptor
- Overrides:
createPropertyEditor
in classPropertyDescriptor
- Parameters:
parent
- the parent widget for the cell editor- Returns:
- the cell editor for this property, or
null
if this property cannot be edited
-
-