org.eclipse.gmt.umlx.editor.property.sources
Class ResourcePropertySource

java.lang.Object
  extended by org.eclipse.gmt.umlx.editor.property.sources.AbstractPropertySource
      extended by org.eclipse.gmt.umlx.editor.property.sources.ModelPropertySource<org.eclipse.emf.ecore.resource.Resource>
          extended by 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>


Field Summary
 
Fields inherited from class org.eclipse.gmt.umlx.editor.property.sources.AbstractPropertySource
READ_ONLY
 
Constructor Summary
ResourcePropertySource(java.lang.String categoryName, org.eclipse.emf.ecore.resource.Resource model)
           
 
Method Summary
 ResourceAdapter getAdapter()
           
 java.lang.Object getPropertyValue(java.lang.Object id)
           
 boolean isPropertyIdentity(java.lang.Object id)
           
 boolean isPropertyResettable(java.lang.Object id)
           
 boolean isPropertySet(java.lang.Object id)
           
 boolean isPropertySettable(java.lang.Object id)
          Return true if the id property may be set to a new value.
 void resetPropertyValue(java.lang.Object id)
           
 void setPropertyValue(java.lang.Object id, java.lang.Object value)
           
 
Methods inherited from class org.eclipse.gmt.umlx.editor.property.sources.ModelPropertySource
add, getCategoryName, getModel, isSettable, toString
 
Methods inherited from class org.eclipse.gmt.umlx.editor.property.sources.AbstractPropertySource
getEditableValue, getPropertyDescriptor, getPropertyDescriptors, getPropertySource, isPropertyVolatile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.property.sources.IModelPropertySource2
isPropertyVolatile
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.property.sources.IModelPropertySource
getPropertyDescriptor
 
Methods inherited from interface org.eclipse.ui.views.properties.IPropertySource
getEditableValue, getPropertyDescriptors
 

Constructor Detail

ResourcePropertySource

public ResourcePropertySource(java.lang.String categoryName,
                              org.eclipse.emf.ecore.resource.Resource model)
Method Detail

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