|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.AdapterImpl
org.jupe.editors.classdiagram.model.ModelElement
public abstract class ModelElement
Base class for the model. Each element that appears in the class diagram model should be a subclass of this one.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
---|
org.eclipse.emf.common.notify.Adapter.Internal |
Field Summary | |
---|---|
static java.lang.String |
GENERAL_CHANGE_PROP
PropertyId that indicates a general change to the observers. |
Constructor Summary | |
---|---|
ModelElement()
Default constructor for a ModelElement. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
Attach a non-null PropertyChangeListener to this object. |
abstract ClassDiagram |
getClassDiagram()
|
java.lang.Object |
getEditableValue()
(non-Javadoc) |
org.eclipse.ui.views.properties.IPropertyDescriptor[] |
getPropertyDescriptors()
Normally subclasses shouldn't override this, but implement initializeDescriptors() to define which property ids it
supports. |
abstract java.lang.Object |
getPropertyValue(java.lang.Object propertyId)
Children should override this. |
abstract org.eclipse.uml2.uml.Element |
getUML2Element()
Sets the corresponding uml2element of this model element. |
abstract boolean |
isPropertySet(java.lang.Object propertyId)
Children should override this. |
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification)
The ModelElement does only handle SET notifications. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
Remove a PropertyChangeListener from this component. |
abstract void |
resetPropertyValue(java.lang.Object propertyId)
Children should override this. |
abstract void |
setPropertyValue(java.lang.Object propertyId,
java.lang.Object value)
Children should override this. |
void |
setUML2Element(org.eclipse.uml2.uml.Element uml2Element)
Children should override this method, call super.setUML2Element(uml2Element) and then update their UML2Element accordingly. |
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
---|
getTarget, isAdapterForType, setTarget, unsetTarget |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GENERAL_CHANGE_PROP
Constructor Detail |
---|
public ModelElement()
Method Detail |
---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
propertyChangeListener
- a non-null PropertyChangeListener instance
java.lang.IllegalArgumentException
- if the parameter is nullpublic java.lang.Object getEditableValue()
getEditableValue
in interface org.eclipse.ui.views.properties.IPropertySource
IPropertySource.getEditableValue()
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
initializeDescriptors()
to define which property ids it
supports.
getPropertyDescriptors
in interface org.eclipse.ui.views.properties.IPropertySource
eclipse.ui.views.properties.IPropertySource#getPropertyDescriptors()
public abstract java.lang.Object getPropertyValue(java.lang.Object propertyId)
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
eclipse.ui.views.properties.IPropertySource#getPropertyValue(java.lang.Object)
public abstract boolean isPropertySet(java.lang.Object propertyId)
isPropertySet
in interface org.eclipse.ui.views.properties.IPropertySource
eclipse.ui.views.properties.IPropertySource#isPropertySet(java.lang.Object)
public void removePropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
propertyChangeListener
- a PropertyChangeListener instancepublic abstract void resetPropertyValue(java.lang.Object propertyId)
resetPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
IPropertySource.resetPropertyValue(java.lang.Object)
public abstract void setPropertyValue(java.lang.Object propertyId, java.lang.Object value)
setPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
eclipse.ui.views.properties.IPropertySource#setPropertyValue(java.lang.Object,
java.lang.Object)
public abstract org.eclipse.uml2.uml.Element getUML2Element()
IContainerElement
s in their create..
methods. This method has to be implemented by each subclass which have
themselves to set as an adapter of the element.
public void setUML2Element(org.eclipse.uml2.uml.Element uml2Element)
uml2Element
- the new uml2 reference for the model elementpublic void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
AddAdapter
for details)
and should be handled in subclasses. All implementations in the
subclasses should call this super method. It is also necessary to verify
that the handleNotifications variable is set to true to avoid
notifications for each call of setPropertyValue().
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
notifyChanged
in class org.eclipse.emf.common.notify.impl.AdapterImpl
Adapter.notifyChanged(org.eclipse.emf.common.notify.Notification)
public abstract ClassDiagram getClassDiagram()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |