|[EMF Compare] Custom ContentProvider and LabelProvider + TransactionalEditingDomain [message #657688]
||Thu, 03 March 2011 11:14
| Sylvain Dudoit
Registered: February 2011
I'm using EMF Compare 1.0.1 with Eclipse 3.5.2.
I want to integrate EMF Compare in my RCP application.
I already tried to implement a Handler like this :
MatchModel match = MatchService.doMatch(eObject1, eObject2, Collections.<String, Object> emptyMap());
DiffModel diff = DiffService.doDiff(match, false);
ComparisonResourceSnapshot snapshot = DiffFactory.eINSTANCE.createComparisonResourceSnapshot();
ModelCompareEditorInput input = new ModelCompareEditorInput(snapshot);
My problems are :
- The two EObjects come from a TransactionalEditingDomain. Then, the commit of changes is a problem since it doesn't use transactions.
- How can I customize the viewers in order to put my customized LabelProvider and my Filter or Decorator.
Thank you for your answer,
Powered by FUDForum
. Page generated in 0.01511 seconds