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

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

public class PartOfPropertySource
extends ModelElementsPropertySource

Eclipse property source for the Concept part-of relationship.

Since:
0.2.0
Version:
0.2.10, 07/05/2004
Author:
Dennis Wagelaar

Constructor Summary
PartOfPropertySource(Concept subject)
          Creates a PartOfPropertySource
 
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

PartOfPropertySource

public PartOfPropertySource(Concept subject)
Creates a PartOfPropertySource

Parameters:
subject - the Concept for which to edit the PartOf relationship.
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)