|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvocleditor.model.EObjectPropertySource
public class EObjectPropertySource
This class is intended to be a generic property source for all the objects in the application's model. It currently only supports String and boolean types, and doesn't support reset or nested properties. It uses information in the EMF EAttribute and EDataType classes to get the id, display name, and type information.
Constructor Summary | |
---|---|
EObjectPropertySource(org.eclipse.emf.ecore.EObject obj)
The default constructor. |
Method Summary | |
---|---|
java.lang.Object |
getEditableValue()
Returns the editable value. |
org.eclipse.ui.views.properties.IPropertyDescriptor[] |
getPropertyDescriptors()
Returns the array of property descriptions. |
java.lang.Object |
getPropertyValue(java.lang.Object id)
Returns the property value. |
boolean |
isPropertySet(java.lang.Object id)
Is the object with the given id a poperty set. |
void |
resetPropertyValue(java.lang.Object id)
Resets the property value. |
void |
setPropertyValue(java.lang.Object id,
java.lang.Object value)
Sets the property value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EObjectPropertySource(org.eclipse.emf.ecore.EObject obj)
obj
- the objectMethod Detail |
---|
public java.lang.Object getEditableValue()
getEditableValue
in interface org.eclipse.ui.views.properties.IPropertySource
IPropertySource.getEditableValue()
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors
in interface org.eclipse.ui.views.properties.IPropertySource
IPropertySource.getPropertyDescriptors()
public java.lang.Object getPropertyValue(java.lang.Object id)
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
IPropertySource.getPropertyValue(java.lang.Object)
public boolean isPropertySet(java.lang.Object id)
isPropertySet
in interface org.eclipse.ui.views.properties.IPropertySource
IPropertySource.isPropertySet(java.lang.Object)
public void resetPropertyValue(java.lang.Object id)
resetPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
org.eclipse.ui.views.properties.IPropertySouce#resetPropertyValue(java.lang.Object)
public void setPropertyValue(java.lang.Object id, java.lang.Object value)
setPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |