Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare] Duplicate differences into DiffModel
[EMF Compare] Duplicate differences into DiffModel [message #630097] Thu, 30 September 2010 11:33 Go to next message
Eclipse UserFriend
Hi,

I'm comparing two UML Models exported from MagicDraw with the EMF UML2
XMI export feature.
In the DiffModel, it seems that there are many duplicated elements. Here
is an output from myDiffModel.getDifferences():

org.eclipse.emf.ecore.impl.EAnnotationImpl@353f6a (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@13a1398 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
org.eclipse.emf.ecore.impl.EAnnotationImpl@2f7d55 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@1ea15f2 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
org.eclipse.emf.ecore.impl.EAnnotationImpl@1828374 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@12eafbf (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
org.eclipse.emf.ecore.impl.EAnnotationImpl@1f528dc (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@1173370 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
org.eclipse.emf.ecore.impl.EAnnotationImpl@111cccd (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@4e19c1 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
org.eclipse.emf.ecore.impl.EAnnotationImpl@47f959 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@5962c4 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
org.eclipse.emf.ecore.impl.EAnnotationImpl@39f7bc (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@186dbbb (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
org.eclipse.emf.ecore.impl.EAnnotationImpl@68969c (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@2365fe (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
------------------------------------------------------------ -----------
org.eclipse.uml2.uml.internal.impl.LiteralUnlimitedNaturalIm pl @1e431c2
(name: , visibility: <unset>) (value: 1) has been added
org.eclipse.uml2.uml.internal.impl.LiteralIntegerImpl@7ef926 (name: ,
visibility: <unset>) (value: 0) has been added
org.eclipse.uml2.uml.internal.impl.LiteralIntegerImpl@110fdb4 (name: ,
visibility: <unset>) (value: 1) has been removed
org.eclipse.uml2.uml.internal.impl.LiteralUnlimitedNaturalIm pl @3ff589
(name: , visibility: <unset>) (value: 1) has been removed
------------------------------------------------------------ -----------
org.eclipse.emf.ecore.impl.EAnnotationImpl@193618e (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@3ed23c (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
org.eclipse.emf.ecore.impl.EAnnotationImpl@1cbbe6 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@33f0d1 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
org.eclipse.emf.ecore.impl.EAnnotationImpl@32bbcc (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@15771a2 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
org.eclipse.emf.ecore.impl.EAnnotationImpl@4a3993 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@1da07be (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed
org.eclipse.emf.ecore.impl.EAnnotationImpl@32d6e7 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been added
org.eclipse.emf.ecore.impl.EAnnotationImpl@130faf3 (source:
http://www.eclipse.org/uml2/2.0.0/UML) has been removed



Only Four lines are relevant, Can someone explain to me why i have
duplicate lines?
Thanks,
Cheers,

Julien
Re: [EMF Compare] Duplicate differences into DiffModel [message #633051 is a reply to message #630097] Fri, 15 October 2010 04:26 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------040400020708060900060901
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Julien,

Please use the EMF newsgroup for questions regarding EMF Compare.

The duplicate lines come from us not being able to properly match UML
elements. The generatic engines of EMF Compare has issues with UML
annotations, sterotypes... You'll have to subclass the
GenericMatchEngine to specifically match UML elements according to your
needs.

Laurent Goubet
Obeo

Julien wrote:
> Hi,
>
> I'm comparing two UML Models exported from MagicDraw with the EMF UML2
> XMI export feature.
> In the DiffModel, it seems that there are many duplicated elements. Here
> is an output from myDiffModel.getDifferences():
>
> org.eclipse.emf.ecore.impl.EAnnotationImpl@353f6a (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@13a1398 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> org.eclipse.emf.ecore.impl.EAnnotationImpl@2f7d55 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@1ea15f2 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> org.eclipse.emf.ecore.impl.EAnnotationImpl@1828374 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@12eafbf (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> org.eclipse.emf.ecore.impl.EAnnotationImpl@1f528dc (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@1173370 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> org.eclipse.emf.ecore.impl.EAnnotationImpl@111cccd (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@4e19c1 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> org.eclipse.emf.ecore.impl.EAnnotationImpl@47f959 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@5962c4 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> org.eclipse.emf.ecore.impl.EAnnotationImpl@39f7bc (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@186dbbb (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> org.eclipse.emf.ecore.impl.EAnnotationImpl@68969c (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@2365fe (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> ------------------------------------------------------------ -----------
> org.eclipse.uml2.uml.internal.impl.LiteralUnlimitedNaturalIm pl @1e431c2
> (name: , visibility: <unset>) (value: 1) has been added
> org.eclipse.uml2.uml.internal.impl.LiteralIntegerImpl@7ef926 (name: ,
> visibility: <unset>) (value: 0) has been added
> org.eclipse.uml2.uml.internal.impl.LiteralIntegerImpl@110fdb4 (name: ,
> visibility: <unset>) (value: 1) has been removed
> org.eclipse.uml2.uml.internal.impl.LiteralUnlimitedNaturalIm pl @3ff589
> (name: , visibility: <unset>) (value: 1) has been removed
> ------------------------------------------------------------ -----------
> org.eclipse.emf.ecore.impl.EAnnotationImpl@193618e (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@3ed23c (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> org.eclipse.emf.ecore.impl.EAnnotationImpl@1cbbe6 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@33f0d1 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> org.eclipse.emf.ecore.impl.EAnnotationImpl@32bbcc (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@15771a2 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> org.eclipse.emf.ecore.impl.EAnnotationImpl@4a3993 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@1da07be (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
> org.eclipse.emf.ecore.impl.EAnnotationImpl@32d6e7 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been added
> org.eclipse.emf.ecore.impl.EAnnotationImpl@130faf3 (source:
> http://www.eclipse.org/uml2/2.0.0/UML) has been removed
>
>
>
> Only Four lines are relevant, Can someone explain to me why i have
> duplicate lines?
> Thanks,
> Cheers,
>
> Julien


--------------040400020708060900060901
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr">Obeo</a>
email;internet:laurent.goubet@obeo.fr
url:http://www.obeo.fr
version:2.1
end:vcard


--------------040400020708060900060901--
Previous Topic:[TEXO] XML serialization for arraylist
Next Topic:[EMF Compare] Is it possible to ignore the element order?
Goto Forum:
  


Current Time: Wed Jul 23 07:38:24 EDT 2025

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

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

Back to the top