Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Copy all non conflicting changes ... emf compare(Using emf compare from code)
Copy all non conflicting changes ... emf compare [message #666185] Tue, 19 April 2011 12:32 Go to next message
js Missing name is currently offline js Missing nameFriend
Messages: 73
Registered: July 2009
I am experimenting with using emf compare from code based on this example: les.standalone/src/org/eclipse/emf/compare/examples/standalo ne/

I create to sample models that only differs slightly but how do I trigger the "Copy all non conflicting changes from right to left" from code (which updates the content of the model to the left)?

I have tried to store the two sample models to corresponding .xmi files and use emf compare through eclipse to compare and update the left file which works fine.

But I cannot find any documentation that describes how this is done from code. Any suggestions?
Re: Copy all non conflicting changes ... emf compare [message #667796 is a reply to message #666185] Mon, 02 May 2011 09:26 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1886
Registered: July 2009
Senior Member

The merging API of EMF Compare can be called through the "MergeService" facade (in the example you mentionned, it's the "MergeService.merge(differences, true);" line). The boolean passed as a parameter of this method determines the direction of the merge.

Is that not what you are seeking?

Laurent Goubet
Previous Topic:MXF Creation Review results
Next Topic:[EMF Compare] and supertypes
Goto Forum:

Current Time: Sat Oct 24 17:48:07 GMT 2020

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

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

Back to the top