move [message #1773936] |
Fri, 06 October 2017 17:14 |
taghreed altamimi Messages: 184 Registered: October 2014 |
Senior Member |
|
|
hi,
I have question about "move" . In the attached picture i moved Artifact1 from Device2 to Device1. I am expecting that EMFcompare detects a difference type ADD on Device1 as its the new container . What is the expected behavior for EMFCompare in such case?? meaning does EMFCompare detect two differences one is kind= move on the old container side and another kind= ADD on the new container side.??
Thanks,
Taghreed
-
Attachment: move.png
(Size: 33.80KB, Downloaded 255 times)
[Updated on: Fri, 06 October 2017 17:15] Report message to a moderator
|
|
|
Re: move [message #1774115 is a reply to message #1773936] |
Tue, 10 October 2017 17:23 |
|
Hi Taghreed,
whether it is a move or an addition/deletion is defined by the identity function that determines the identity of the model elements during the matching phase. If the Device1 on the left side is matched to the Device1 on the right side during the matching phase, EMF Compare will report a move. If it isn't matched, EMF Compare will report an addition and deletion instead.
You can configure/customize the identity function or the entire matcher regarding your needs. By default, EMF Compare's matcher will use the identity of the EObject for the matching. The identity of the EObject is either the value of the id-attribute, according to its ecore model, or the XMI:ID, if available. Please have a look at the section about matching in the customization guide for more info.
Hope that helps,
Philip
--
Philip Langer
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03893 seconds