org.eclipse.gmt.umlx.editor.property.sources
Class ResourcePropertySource
java.lang.Object
org.eclipse.gmt.umlx.editor.property.sources.AbstractPropertySource
org.eclipse.gmt.umlx.editor.property.sources.ModelPropertySource<org.eclipse.emf.ecore.resource.Resource>
org.eclipse.gmt.umlx.editor.property.sources.ResourcePropertySource
- All Implemented Interfaces:
- IModelPropertySource, IModelPropertySource2<org.eclipse.emf.ecore.resource.Resource>, org.eclipse.ui.views.properties.IPropertySource, org.eclipse.ui.views.properties.IPropertySource2
public class ResourcePropertySource
- extends ModelPropertySource<org.eclipse.emf.ecore.resource.Resource>
Constructor Summary |
ResourcePropertySource(java.lang.String categoryName,
org.eclipse.emf.ecore.resource.Resource model)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.views.properties.IPropertySource |
getEditableValue, getPropertyDescriptors |
ResourcePropertySource
public ResourcePropertySource(java.lang.String categoryName,
org.eclipse.emf.ecore.resource.Resource model)
getAdapter
public ResourceAdapter getAdapter()
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.Object id)
- Specified by:
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
- Overrides:
getPropertyValue
in class AbstractPropertySource
isPropertyIdentity
public boolean isPropertyIdentity(java.lang.Object id)
- Specified by:
isPropertyIdentity
in interface IModelPropertySource2<org.eclipse.emf.ecore.resource.Resource>
- Overrides:
isPropertyIdentity
in class AbstractPropertySource
isPropertyResettable
public boolean isPropertyResettable(java.lang.Object id)
- Specified by:
isPropertyResettable
in interface org.eclipse.ui.views.properties.IPropertySource2
- Overrides:
isPropertyResettable
in class AbstractPropertySource
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
- Overrides:
isPropertySet
in class AbstractPropertySource
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
- Overrides:
isPropertySettable
in class AbstractPropertySource
- Parameters:
id
- of property for which source required
- Returns:
- true if settable
resetPropertyValue
public void resetPropertyValue(java.lang.Object id)
- Specified by:
resetPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
- Overrides:
resetPropertyValue
in class AbstractPropertySource
setPropertyValue
public void setPropertyValue(java.lang.Object id,
java.lang.Object value)
- Specified by:
setPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
- Overrides:
setPropertyValue
in class AbstractPropertySource