org.eclipse.emf.edit.ui.provider
Class PropertyDescriptor
java.lang.Object
|
+--org.eclipse.emf.edit.ui.provider.PropertyDescriptor
- All Implemented Interfaces:
- org.eclipse.ui.views.properties.IPropertyDescriptor
- public class PropertyDescriptor
- extends java.lang.Object
- implements org.eclipse.ui.views.properties.IPropertyDescriptor
This is used to encapsulate an IItemPropertyDescriptor
along with the object for which it is an item property source
and make it behave like an IPropertyDescriptor
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
object
protected java.lang.Object object
- This is the object for which this class is a property source.
itemPropertyDescriptor
protected IItemPropertyDescriptor itemPropertyDescriptor
- This is the descriptor to which we will delegate all the
IPropertyDescriptor
methods.
ecorePackage
protected static final EcorePackage ecorePackage
PropertyDescriptor
public PropertyDescriptor(java.lang.Object object,
IItemPropertyDescriptor itemPropertyDescriptor)
- An instance is constructed from an object and its item property source.
getCategory
public java.lang.String getCategory()
- Specified by:
getCategory
in interface org.eclipse.ui.views.properties.IPropertyDescriptor
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface org.eclipse.ui.views.properties.IPropertyDescriptor
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName
in interface org.eclipse.ui.views.properties.IPropertyDescriptor
getFilterFlags
public java.lang.String[] getFilterFlags()
- Specified by:
getFilterFlags
in interface org.eclipse.ui.views.properties.IPropertyDescriptor
getHelpContextIds
public java.lang.Object getHelpContextIds()
- Specified by:
getHelpContextIds
in interface org.eclipse.ui.views.properties.IPropertyDescriptor
getId
public java.lang.Object getId()
- Specified by:
getId
in interface org.eclipse.ui.views.properties.IPropertyDescriptor
getLabelProvider
public org.eclipse.jface.viewers.ILabelProvider getLabelProvider()
- Specified by:
getLabelProvider
in interface org.eclipse.ui.views.properties.IPropertyDescriptor
isCompatibleWith
public boolean isCompatibleWith(org.eclipse.ui.views.properties.IPropertyDescriptor anotherProperty)
- Specified by:
isCompatibleWith
in interface org.eclipse.ui.views.properties.IPropertyDescriptor
createPropertyEditor
public org.eclipse.jface.viewers.CellEditor createPropertyEditor(org.eclipse.swt.widgets.Composite composite)
- This returns the cell editor that will be used to edit the value of this property.
This default implementation determines the type of cell editor from the nature of the structural feature.
- Specified by:
createPropertyEditor
in interface org.eclipse.ui.views.properties.IPropertyDescriptor