org.eclipse.gmt.umlx.editor.property.sources
Class AbstractPropertySource
java.lang.Object
org.eclipse.gmt.umlx.editor.property.sources.AbstractPropertySource
- All Implemented Interfaces:
- IModelPropertySource, org.eclipse.ui.views.properties.IPropertySource, org.eclipse.ui.views.properties.IPropertySource2
- Direct Known Subclasses:
- CompoundPropertySource, ModelPropertySource
public abstract class AbstractPropertySource
- extends java.lang.Object
- implements IModelPropertySource
Field Summary |
static java.lang.String |
READ_ONLY
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
READ_ONLY
public static final java.lang.String READ_ONLY
- See Also:
- Constant Field Values
AbstractPropertySource
public AbstractPropertySource()
getEditableValue
public java.lang.Object getEditableValue()
- Specified by:
getEditableValue
in interface org.eclipse.ui.views.properties.IPropertySource
getPropertyDescriptor
public IModelPropertyDescriptor getPropertyDescriptor(java.lang.Object id)
- Description copied from interface:
IModelPropertySource
- Return the non-compound property source applicable to the id property.
- Specified by:
getPropertyDescriptor
in interface IModelPropertySource
- Parameters:
id
- of property for which source required
- Returns:
- non-compound property source
getPropertyDescriptors
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
- Specified by:
getPropertyDescriptors
in interface org.eclipse.ui.views.properties.IPropertySource
getPropertySource
public IModelPropertySource2<?> getPropertySource(java.lang.Object id)
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.Object id)
- Specified by:
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
isPropertyIdentity
public boolean isPropertyIdentity(java.lang.Object id)
isPropertyResettable
public boolean isPropertyResettable(java.lang.Object id)
- Specified by:
isPropertyResettable
in interface org.eclipse.ui.views.properties.IPropertySource2
isPropertySet
public boolean isPropertySet(java.lang.Object id)
- Specified by:
isPropertySet
in interface org.eclipse.ui.views.properties.IPropertySource
- Specified by:
isPropertySet
in interface org.eclipse.ui.views.properties.IPropertySource2
isPropertySettable
public boolean isPropertySettable(java.lang.Object id)
- Description copied from interface:
IModelPropertySource
- Return true if the id property may be set to a new value.
A modification to an underlying read-only resource is not settable.
- Specified by:
isPropertySettable
in interface IModelPropertySource
- Parameters:
id
- of property for which source required
- Returns:
- true if settable
isPropertyVolatile
public boolean isPropertyVolatile(java.lang.Object id)
resetPropertyValue
public void resetPropertyValue(java.lang.Object id)
- Specified by:
resetPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
setPropertyValue
public void setPropertyValue(java.lang.Object id,
java.lang.Object value)
- Specified by:
setPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource