|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.vub.cocompose.eclipse.model.datatypes.ModelElementsPropertySource
Eclipse property source for multiple ModelElements.
Constructor Summary | |
ModelElementsPropertySource(ModelElement subject,
List values,
Class elementClass)
Creates a PartOfPropertySource. |
|
ModelElementsPropertySource(ModelElement subject,
List values,
Namespace namespace,
Class elementClass)
Creates a PartOfPropertySource. |
Method Summary | |
protected void |
addElement(int index,
ModelElement element)
Responsible for adding an element to the property. |
protected IPropertyDescriptor[] |
createDescriptorsArray(Collection desc)
Creates the property descriptors array from a Collection. |
protected List |
createPropertyDescriptors()
Creates the property descriptors list |
protected String[] |
createStringArray(Collection coll)
Creates a string array from a Collection. |
Object |
getEditableValue()
|
protected String |
getFullName(ModelElement element)
Returns the full model-wide unique name of the given element |
protected be.ac.vub.cocompose.log.Log |
getLog()
Gets the logging object. |
protected List |
getPossibleValues()
Gets the possible values for this property. |
IPropertyDescriptor[] |
getPropertyDescriptors()
|
Object |
getPropertyValue(Object id)
|
protected be.ac.vub.cocompose.CoCompose |
getSettings()
Gets the settings object. |
protected List |
getValues()
Gets the values for this property. |
protected List |
getValueStrings()
Gets the possible value strings for this property. |
boolean |
isPropertySet(Object id)
|
protected void |
removeElement(ModelElement element)
Responsible for removing an element from the property. |
void |
resetPropertyValue(Object id)
|
void |
setPropertyValue(Object id,
Object value)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ModelElementsPropertySource(ModelElement subject, List values, Namespace namespace, Class elementClass)
subject
- the subject for which to set the property.values
- the current values of the property.namespace
- the Namespace in which to look for the property.elementClass
- the class of the possible value elements.public ModelElementsPropertySource(ModelElement subject, List values, Class elementClass)
CoCompose
.
subject
- the subject for which to set the property.values
- the current values of the property.elementClass
- the class of the possible value elements.Method Detail |
public Object getEditableValue()
getEditableValue
in interface IPropertySource
IPropertySource.getEditableValue()
public IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors
in interface IPropertySource
IPropertySource.getPropertyDescriptors()
public Object getPropertyValue(Object id)
getPropertyValue
in interface IPropertySource
IPropertySource.getPropertyValue(java.lang.Object)
public boolean isPropertySet(Object id)
isPropertySet
in interface IPropertySource
IPropertySource.isPropertySet(java.lang.Object)
public void resetPropertyValue(Object id)
resetPropertyValue
in interface IPropertySource
IPropertySource.resetPropertyValue(java.lang.Object)
public void setPropertyValue(Object id, Object value)
setPropertyValue
in interface IPropertySource
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)
public String toString()
Object.toString()
protected void removeElement(ModelElement element)
CoCompose
.
element
- the element to remove.protected void addElement(int index, ModelElement element)
CoCompose
.
index
- the index where to add or -1 to append.element
- the element to add.protected String getFullName(ModelElement element)
element
- the element to return the name for
protected be.ac.vub.cocompose.CoCompose getSettings()
protected be.ac.vub.cocompose.log.Log getLog()
protected List getValueStrings()
protected List getPossibleValues()
protected List getValues()
protected List createPropertyDescriptors()
protected IPropertyDescriptor[] createDescriptorsArray(Collection desc)
desc
- - the descriptors collection.
protected String[] createStringArray(Collection coll)
coll
- - the collection.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |