Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EMF Compare
EMF Compare [message #622834] Thu, 06 May 2010 08:52 Go to next message
Hanane is currently offline HananeFriend
Messages: 6
Registered: May 2010
Junior Member
Hi,
I'm new user to EMF Compare and I tried to compare two instance of models (from the same metamodel),and i want display the list of differences in Console,
but problem is that even if i load the two models to compare which with no difference i always get the same message in console:

//////////////////////////////////////////////////////////// /////////////////////////////////////////////////////

*** Loading resources ***

C:\Documents and Settings\yatimih\runtime-New_configuration\MyAlgorithm1\diag ram\old-default.impala_diagram : rootCompositeBox1

C:\Documents and Settings\yatimih\runtime-New_configuration\MyAlgorithm2\diag ram\old-default.impala_diagram : rootCompositeBox2

*** Matching and Differencing models ***

1
24
1
mailto:org.eclipse.emf.compare.diff.metamodel.impl.DiffGroupImpl@1ae93c5 (conflicting: false, kind: Addition)
mailto:org.eclipse.emf.compare.diff.metamodel.impl.DiffGroupImpl@1ae93c5 (conflicting: false, kind: Addition)
Change:2
3 change(s) in RootCompositeBox MyAlgorithm1

2
57 change(s) in Diagram default.impala_diagram

2
//////////////////////////////////////////////////////////// //////////////////////////////////////////////////

i need some examples and tutorials about this subject,

can anyone help me,

Thanks in advance
Re: EMF Compare [message #622872 is a reply to message #622834] Tue, 11 May 2010 09:03 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.
--------------010506020303050700070907
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I guess you're using the "standalone example" as a base for launching
your comparison. You told you were loading the two models yourself, so I
guess you took care of registering all needed packages and resource
factories (such as what is given as example for UML on
http://wiki.eclipse.org/MDT/UML2/FAQ#What.27s_required_to_lo ad_a_UML_.28.uml.29_resource_from_a_standalone_application.3 F
).

I don't know what all the "integer" messages printed in the console are,
But the rest seems to tell EMF Compare indeed detected a number of
differences in your models ; you can iterate on the diff model's
eAllContent to check what all the differences are.

Seeing as what you're comparing are diagrams, I'd say you have IDs in
these models (xmi ids or functional ids). If the two diagrams have been
created in a graphical modeler at a distinct time (i.e they are not
"copy paste" of one another), then chances are the IDs of your elements
are different even if the elements themselves are identical. You'll have
to set the option MatchOptions.IGNORE_XMI_ID (or
MatchOptions.IGNORE_FUNCTIONAL_ID if yours are functional IDs) to true
for your comparison in order to avoid having EMF Compare detect
differences based on IDs alone. (This is done via the Map MatchService
takes as a parameter of all "doXxxMatch" operations.)

If this is not your issue, you can try comparing your models from the
Eclipse UI to see if EMF Compare behaves as expected when called from
the "standard" code. You only need to select your two impala_diagram
files in the workspace, right-click them and select "compare with =>
each other" to try this.

If none of this helps, I'll need more info as to what you get as
differences in order to try and understand what EMF Compare falsely
detect as different.

Laurent Goubet
Obeo

Hanane wrote:
> Hi,
> I'm new user to EMF Compare and I tried to compare two instance of
> models (from the same metamodel),and i want display the list of
> differences in Console,
> but problem is that even if i load the two models to compare which with
> no difference i always get the same message in console:
>
> ////////////////////////////////////////////////////////////
> /////////////////////////////////////////////////////
>
> *** Loading resources ***
> C:\Documents and
> Settings\yatimih\runtime-New_configuration\MyAlgorithm1\diag
> ram\old-default.impala_diagram : rootCompositeBox1
> C:\Documents and
> Settings\yatimih\runtime-New_configuration\MyAlgorithm2\diag
> ram\old-default.impala_diagram : rootCompositeBox2
> *** Matching and Differencing models ***
> 1
> 24
> 1
> mailto:org.eclipse.emf.compare.diff.metamodel.impl.DiffGroupImpl@1ae93c5
> (conflicting: false, kind: Addition)
> mailto:org.eclipse.emf.compare.diff.metamodel.impl.DiffGroupImpl@1ae93c5
> (conflicting: false, kind: Addition)
> Change:2
> 3 change(s) in RootCompositeBox MyAlgorithm1
>
> 2
> 57 change(s) in Diagram default.impala_diagram
>
> 2
> ////////////////////////////////////////////////////////////
> //////////////////////////////////////////////////
>
> i need some examples and tutorials about this subject,
>
> can anyone help me,
>
> Thanks in advance


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

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------010506020303050700070907--
Previous Topic:[EMF Compare]comparison of a copied model shows differences in data types
Next Topic:EMF Compare Start problem
Goto Forum:
  


Current Time: Tue May 14 21:38:02 GMT 2024

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

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

Back to the top