be.ac.vub.cocompose.eclipse.model.core
Class EclipseModel

java.lang.Object
  extended bybe.ac.vub.cocompose.lang.impl.DefaultElement
      extended bybe.ac.vub.cocompose.lang.impl.core.DefaultModelElement
          extended bybe.ac.vub.cocompose.lang.impl.core.DefaultNamespace
              extended bybe.ac.vub.cocompose.lang.impl.core.DefaultModel
                  extended bybe.ac.vub.cocompose.eclipse.model.core.EclipseModel
All Implemented Interfaces:
Cloneable, Element, IPropertyDescriptorCreator, IPropertySource, Model, ModelElement, Namespace, VisitedElement

public class EclipseModel
extends DefaultModel
implements IPropertyDescriptorCreator

The Model language element for Eclipse.

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

Field Summary
static String ID_ROUTER
           
 
Constructor Summary
EclipseModel()
           
 
Method Summary
 List createDescriptors()
          Creates the property descriptors.
 Object getEditableValue()
           
 IPropertyDescriptor[] getPropertyDescriptors()
          Re-creates ModelElementPropertySource descriptors each time.
 Object getPropertyValue(Object id)
           
 boolean isPropertySet(Object id)
           
 void resetPropertyValue(Object id)
           
 void setPropertyValue(Object id, Object value)
          Sets the value of a given property with the value supplied.
 
Methods inherited from class be.ac.vub.cocompose.lang.impl.core.DefaultModel
accept, getDefaultElement, getUri, setDefaultElement, setId, setUri
 
Methods inherited from class be.ac.vub.cocompose.lang.impl.core.DefaultNamespace
addOwnedElement, addOwnedElement, getDeepOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElements, getOwnedElements, getOwnedIds, getRootNamespace, isRegistered, registerNameChange, removeOwnedElement, translateIndex, translateIndex
 
Methods inherited from class be.ac.vub.cocompose.lang.impl.core.DefaultModelElement
getId, getModel, getName, getNamespace, setName, setNamespace, toString
 
Methods inherited from class be.ac.vub.cocompose.lang.impl.DefaultElement
addPropertyChangeListener, firePropertyChange, fireStructureChange, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.Namespace
addOwnedElement, addOwnedElement, getDeepOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElements, getOwnedElements, getOwnedIds, isRegistered, registerNameChange, removeOwnedElement
 
Methods inherited from interface be.ac.vub.cocompose.lang.core.ModelElement
getId, getModel, getName, getNamespace, getRootNamespace, setName, setNamespace
 
Methods inherited from interface be.ac.vub.cocompose.lang.Element
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

ID_ROUTER

public static final String ID_ROUTER
See Also:
Constant Field Values
Constructor Detail

EclipseModel

public EclipseModel()
Method Detail

createDescriptors

public List createDescriptors()
Creates the property descriptors.

Specified by:
createDescriptors in interface IPropertyDescriptorCreator
Returns:
the property descriptors.

getPropertyValue

public Object getPropertyValue(Object id)
Specified by:
getPropertyValue in interface IPropertySource
See Also:
IPropertySource.getPropertyValue(java.lang.Object)

setPropertyValue

public void setPropertyValue(Object id,
                             Object value)
Sets the value of a given property with the value supplied. Also fires a property change if necessary.

Specified by:
setPropertyValue in interface IPropertySource
Parameters:
id - - Name of the parameter to be changed.
value - - Value to be set to the given parameter.
See Also:
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)

resetPropertyValue

public void resetPropertyValue(Object id)
Specified by:
resetPropertyValue in interface IPropertySource
See Also:
IPropertySource.resetPropertyValue(java.lang.Object)

getPropertyDescriptors

public IPropertyDescriptor[] getPropertyDescriptors()
Re-creates ModelElementPropertySource descriptors each time.

Specified by:
getPropertyDescriptors in interface IPropertySource
See Also:
IPropertySource.getPropertyDescriptors()

isPropertySet

public boolean isPropertySet(Object id)
Specified by:
isPropertySet in interface IPropertySource
See Also:
IPropertySource.isPropertySet(java.lang.Object)

getEditableValue

public Object getEditableValue()
Specified by:
getEditableValue in interface IPropertySource
See Also:
IPropertySource.getEditableValue()