Skip to main content



      Home
Home » Modeling » Compare » move(what is the expected behavior when difference type is Kind=MOVE)
move [message #1773936] Fri, 06 October 2017 13:14 Go to next message
Eclipse UserFriend
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 281 times)

[Updated on: Fri, 06 October 2017 13:15] by Moderator

Re: move [message #1774115 is a reply to message #1773936] Tue, 10 October 2017 13:23 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: move [message #1774118 is a reply to message #1774115] Tue, 10 October 2017 13:53 Go to previous message
Eclipse UserFriend
Hi Philip,
Got it ,thank you.

Taghreed
Previous Topic:Closing EMF compare dialog after conflict resolution gets stuck
Next Topic:Open a saved comparison model
Goto Forum:
  


Current Time: Wed Jul 16 22:32:32 EDT 2025

Powered by FUDForum. Page generated in 0.03918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top