|
Re: [EMF Compare] Equality Helper not used in match phase [message #1679537 is a reply to message #1673685] |
Mon, 16 March 2015 17:05 |
Axel RICHARD Messages: 43 Registered: September 2010 Location: France |
Member |
|
|
Hi,
First of all, thanks to use EMF Compare. Unfortunately, there are lacks on EMF Compare to customize easily the EqualityHelper.
The steps to tell to EMF Compare to use you own EqualityHelper are not very easy, but it is possible. You have to :
1- Create your EqualityHelper by implementing org.eclipse.emf.compare.utils.IEqualityHelper (see the default implementation to get help: org.eclipse.emf.compare.utils.EqualityHelper, you can also extends it)
2- Create your EqualityHelperFactory by implementing org.eclipse.emf.compare.match.IEqualityHelperFactory (see the default implementation to get help: org.eclipse.emf.compare.match.DefaultEqualityHelperFactory, you can also extends it)
This factory will use your EqualityHelper
3- Create your MatchEngine by implementing org.eclipse.emf.compare.match.IMatchEngine (see the default implementation to get help: org.eclipse.emf.compare.match.DefaultMatchEngine, you can also extends it)
This matchEngine will use your EqualityHelperFactory
4- Create your MatchEngineFactory by implementing org.eclipse.emf.compare.match.IMatchEngine.Factory (see the default implementation to get help: org.eclipse.emf.compare.rcp.internal.match.DefaultRCPMatchEngineFactory, you can also extends it)
This factory will use your MatchEngine
5- Use the org.eclipse.emf.compare.rcp.matchEngine extension-point to register your MatchEngineFactory.
The ranking must be superior to the existing one. (e.g > 0)
Hope it will help.
Regards,
Axel Richard
Obeo
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03349 seconds