Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » move(what is the expected behavior when difference type is Kind=MOVE)
move [message #1773936] Fri, 06 October 2017 17:14 Go to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 152
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 36 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 Go to previous messageGo to next message
Philip Langer is currently offline Philip LangerFriend
Messages: 82
Registered: March 2015
Location: Vienna, Austria
Member

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/
Re: move [message #1774118 is a reply to message #1774115] Tue, 10 October 2017 17:53 Go to previous message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 152
Registered: October 2014
Senior Member
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: Fri Jan 19 17:51:23 GMT 2018

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

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