Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare] Understanding EMF Compare
[EMF Compare] Understanding EMF Compare [message #484260] Fri, 04 September 2009 21:34 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hello all Comparer,

i'm a newbie to EMF Compare and i want to understand this great stuff. I
have a model with four elements

Element:Root
PrimitiveType{name=Integer}
PrimitiveType{name=Real}
PrimitiveType{name=Boolean}
PrimitiveType{name=String}

Than, i create another similiar model like this

Element:Root
PrimitiveType{name=Integer}
PrimitiveType{name=Double}
PrimitiveType{name=Boolean}
PrimitiveType{name=String}

Only the Real value changed to Double. After merging these two models,
the resulting models is exactly the second model. I've introspected the
DiffModel and a Update difference was detected.

What i want the merge algorithm to do is to copy the new double
primitive type into the existing model, so that five primitive types are
contained in the root instead of four. So, for me a general questions
has raised:

Is it possible to build the diff of these two models and than just copy
the missing elements into the left model? I didn't want to get the
models merged entiredly in the end.

And how did EMF Compare indicated that two instances are "equal"?

Thx
Timothy
Re: [EMF Compare] Understanding EMF Compare [message #484363 is a reply to message #484260] Mon, 07 September 2009 08:26 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010804070507030201020103
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Timothy,

In the case described, there is no way to discriminate between two
elements other than through their name attribute. Between "Real" and
"Double" I
Re: [EMF Compare] Understanding EMF Compare [message #621357 is a reply to message #484260] Mon, 07 September 2009 08:26 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010804070507030201020103
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Timothy,

In the case described, there is no way to discriminate between two
elements other than through their name attribute. Between "Real" and
"Double" I
Previous Topic:[EMF Compare] Understanding EMF Compare
Next Topic:[EMF Compare] resourceURISimilarity fails with empty URI
Goto Forum:
  


Current Time: Sat Apr 20 20:16:40 GMT 2024

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

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

Back to the top