Hello,
I’m currently working on the “Restore Related Elements” action on the Class diagram. I’m writing on this list in order to put in light an implementation
problem on the UMLDiagramUpdater class.
Indeed, this class is used to get the incoming and outgoing link of a node. However this class has a strange behavior when dealing with association
(UML Class diagram).
Example:
In a model containing:
è
<Class>Class0
è
<Class>Class2
è
<Class>Class1
è
<Association>Class0_Class1.
è
<Association>Class0_Class2
org.eclipse.papyrus.diagram.clazz.part.UMLDiagramUpdater.getIncomingTypeModelFacetLinks_Association_4001(Type, Map<EObject, Collection<Setting>>)
return the following
collection of UMLLinkDescriptor : [ Desc1{src:Class0,target:Class0} , Desc2{rc:Class0,target:Class0}]
Whereas
org.eclipse.papyrus.diagram.clazz.part.UMLDiagramUpdater.getOutgoingTypeModelFacetLinks_Association_4001(Type)
return
the following collection of UMLLinkDescriptor : [ Desc1{src:Class0,target:Class1 , Desc2{src:Cass0,target:Class2}]
This is a critical bug for us so a quick fix has been committed on the branch 0.8.X with the following bug:
359684: [Class Diagram] Restore Related Elements with association add an extra association
https://bugs.eclipse.org/bugs/show_bug.cgi?id=359684
So I would like to discuss on the bug the suggested solution in order to correctly implement a solution which can be backported on the trunk.
Regards,
Arthur Daussy

|
Arthur Daussy
Atos Origin Intégration
6 impasse Alice Guy
BP 43045
31024 Toulouse Cedex 3
Telephone : +33 (0) 5 34 36 32 90
www.atos.net
|
Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par
erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos ne pourra être engagée quant au contenu de ce message. Bien que les meilleurs efforts soient
faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être engagée pour tout dommage résultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet,
the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting
from any virus transmitted.