be.ac.vub.cocompose.eclipse.model.datatypes
Class ConstrainedElementsPropertySource

java.lang.Object
  extended bybe.ac.vub.cocompose.eclipse.model.datatypes.ModelElementsPropertySource
      extended bybe.ac.vub.cocompose.eclipse.model.datatypes.ConstrainedElementsPropertySource
All Implemented Interfaces:
IPropertySource

public class ConstrainedElementsPropertySource
extends ModelElementsPropertySource

Property source for the constrainedElements property of ElementConstraint.

Since:
0.2.10
Version:
0.2.10, 30/04/2004
Author:
Dennis Wagelaar
See Also:
EclipseElementConstraint

Constructor Summary
ConstrainedElementsPropertySource(ElementConstraint subject)
          Creates a new ConstrainedElementsPropertySource.
 
Method Summary
protected  void addElement(int index, ModelElement element)
          Responsible for adding an element to the property.
protected  void removeElement(ModelElement element)
          Responsible for removing an element from the property.
 
Methods inherited from class be.ac.vub.cocompose.eclipse.model.datatypes.ModelElementsPropertySource
createDescriptorsArray, createPropertyDescriptors, createStringArray, getEditableValue, getFullName, getLog, getPossibleValues, getPropertyDescriptors, getPropertyValue, getSettings, getValues, getValueStrings, isPropertySet, resetPropertyValue, setPropertyValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstrainedElementsPropertySource

public ConstrainedElementsPropertySource(ElementConstraint subject)
Creates a new ConstrainedElementsPropertySource.

Parameters:
subject - the ElementConstraint for which to edit the property.
Method Detail

removeElement

protected void removeElement(ModelElement element)
Description copied from class: ModelElementsPropertySource
Responsible for removing an element from the property. Currently only updates the dependencies on the shared models defined in CoCompose.

Overrides:
removeElement in class ModelElementsPropertySource
Parameters:
element - the element to remove.
See Also:
ModelElementsPropertySource.removeElement(be.ac.vub.cocompose.lang.core.ModelElement)

addElement

protected void addElement(int index,
                          ModelElement element)
Description copied from class: ModelElementsPropertySource
Responsible for adding an element to the property. Currently only updates the dependencies on the shared models defined in CoCompose.

Overrides:
addElement in class ModelElementsPropertySource
Parameters:
index - the index where to add or -1 to append.
element - the element to add.
See Also:
ModelElementsPropertySource.addElement(int, be.ac.vub.cocompose.lang.core.ModelElement)