Configuring EMF Compare [message #1015642] |
Fri, 01 March 2013 09:03  |
Eclipse User |
|
|
|
Hi,
I'd like to use EMF Compare to compare artifacts of a DSL implemented using Xtext.
When I register the file extension of my DSL as appropriate content type, as described in the FAQ:
<extension
point="org.eclipse.core.contenttype.contentTypes">
<file-association
content-type="org.eclipse.emf.ecore.xmi"
file-extensions="uml"
file-names="*"/>
</extension>
EMF Compare is called. Perfect.
But, in order to only display the desired comparison results and to be more efficient, I need to use my own match engine.
There are some extension points for EMF Compare (in org.eclipse.emf.compare.extension), but they seem to not allow to specify the match engine, but only post-processing steps.
How do I register my own match engine (and/or any other customization code for EMF Compare) in this case? Perhaps I am just spoiled by the ease of configuring nearly everything in Xtext ...
I use EMF Compare 2.
Best regards,
Tim
|
|
|
Re: Configuring EMF Compare [message #1015654 is a reply to message #1015642] |
Fri, 01 March 2013 09:35   |
Eclipse User |
|
|
|
Tim,
Not everything is documented yet (far from it :s), but some of the extension capabilities are, a good place to start is thus the wiki.
Replacing the whole Match engine is not possible yet, we could do every modification needed for UML and GMF integration as post-processing steps. Are you sure you cannot? Note that post-processors are available for each comparison step, so you can define one to refine the Match result before the Diff engine kicks in (the Diff engine only uses the result of the Match as input, it does not look at the input models of the comparison).
The only API that's opened (for now) to replace the match engine used by EMF Compare when called from the UI (as opposed to programmatic calls) is the post-processor. More extension points are planned, but that'll only be for M7 at best (M7 is due the 7th of May). If you have specific needs on that point, please share them .
If you have specific questions on how to handle your own use case, do not hesitate to ask.
Laurent Goubet
Obeo
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05399 seconds