org.jupe.editors.classdiagram.model.connections
Class CommentConnectionElement

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.jupe.editors.classdiagram.model.ModelElement
          extended by org.jupe.editors.classdiagram.model.connections.ConnectionElement
              extended by org.jupe.editors.classdiagram.model.connections.CommentConnectionElement
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, org.eclipse.ui.views.properties.IPropertySource

public class CommentConnectionElement
extends ConnectionElement

Model element for the connecting line between a CommentElement and any other node element. This element has no corresponding UML2 element and no properties!

Author:
Steffen Klüpfel, Emanuel Thomas, Michael Pradel

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
 
Fields inherited from class org.jupe.editors.classdiagram.model.connections.ConnectionElement
ENDPOINT_PROP, SOURCE_PROP
 
Fields inherited from class org.jupe.editors.classdiagram.model.ModelElement
GENERAL_CHANGE_PROP
 
Constructor Summary
CommentConnectionElement()
          Default constructor.
CommentConnectionElement(NodeModelElement source, NodeModelElement target)
          Constructor which creates the CommentConnectionElement which the given ends.
 
Method Summary
 java.lang.Object getPropertyValue(java.lang.Object propertyId)
          Return the value corresponding to Property : here nothing description
 org.eclipse.uml2.uml.Element getUML2Element()
          Sets the corresponding uml2element of this model element.
 boolean isPropertySet(java.lang.Object id)
          Method called to check if a property is set
 void resetPropertyValue(java.lang.Object propertyId)
          Method called to reset a property value.
 void setPropertyValue(java.lang.Object propertyId, java.lang.Object value)
          Method called when property is changed
 void setUML2Element(org.eclipse.uml2.uml.Element uml2Element)
          Method used to change elements in uml2 model
 
Methods inherited from class org.jupe.editors.classdiagram.model.connections.ConnectionElement
disconnect, getChildren, getClassDiagram, getEndPoint, getSource, reconnect, reconnect, setSource, setTarget
 
Methods inherited from class org.jupe.editors.classdiagram.model.ModelElement
addPropertyChangeListener, getEditableValue, getPropertyDescriptors, notifyChanged, removePropertyChangeListener
 
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
 

Constructor Detail

CommentConnectionElement

public CommentConnectionElement()
Default constructor.


CommentConnectionElement

public CommentConnectionElement(NodeModelElement source,
                                NodeModelElement target)
Constructor which creates the CommentConnectionElement which the given ends.

Parameters:
source - of a connection
target - of a connection
Method Detail

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object propertyId)
Return the value corresponding to Property : here nothing description

Specified by:
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
Specified by:
getPropertyValue in class ModelElement
See Also:
eclipse.ui.views.properties.IPropertySource#getPropertyValue(java.lang.Object)

isPropertySet

public boolean isPropertySet(java.lang.Object id)
Method called to check if a property is set

Specified by:
isPropertySet in interface org.eclipse.ui.views.properties.IPropertySource
Specified by:
isPropertySet in class ModelElement
See Also:
eclipse.ui.views.properties.IPropertySource#isPropertySet(java.lang.Object)

resetPropertyValue

public void resetPropertyValue(java.lang.Object propertyId)
Method called to reset a property value.

Specified by:
resetPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
Specified by:
resetPropertyValue in class ModelElement
See Also:
IPropertySource.resetPropertyValue(java.lang.Object)

setPropertyValue

public void setPropertyValue(java.lang.Object propertyId,
                             java.lang.Object value)
Method called when property is changed

Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
Specified by:
setPropertyValue in class ModelElement
See Also:
eclipse.ui.views.properties.IPropertySource#setPropertyValue(java.lang.Object, java.lang.Object)

setUML2Element

public void setUML2Element(org.eclipse.uml2.uml.Element uml2Element)
Method used to change elements in uml2 model

Overrides:
setUML2Element in class ConnectionElement
Parameters:
uml2Element - the new uml2 reference for the model element
See Also:
org.jupe.editors.classdiagram.model.ModelElement#setUML2Element(org.eclipse.uml2.Element)

getUML2Element

public org.eclipse.uml2.uml.Element getUML2Element()
Description copied from class: ModelElement
Sets the corresponding uml2element of this model element. This method should only be called by IContainerElements in their create.. methods. This method has to be implemented by each subclass which have themselves to set as an adapter of the element.

Specified by:
getUML2Element in class ModelElement