Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » create models to show in compare view
create models to show in compare view [message #620959] Tue, 19 May 2009 21:31
Thomas L is currently offline Thomas LFriend
Messages: 9
Registered: July 2009
Junior Member
hi,
I develop a multi tier appication. The server contain the compare service
and the client should view the reponse. In the server creation of the
MatchModel and the DiffModel work success. But the DiffModel can't display
in the compare view. When I use the default compare plug in and save the
result, it show different as the DiffModel. E.g. it contains both model
the DiffModel and the MatchModel. I try to use the MergeService and it
doesn't work.
some code:

Map options = new HashMap();
MatchModel match = new EcoreMatchEngine().resourceMatch(resourceLeft,
resourceRight, options);
Resource resourceOutputMatch = resourceSet.createResource(URI
.createFileURI("c:/temp/match1.xmi"));
resourceOutputMatch.getContents().add(match);
resourceOutputMatch.save(null);

DiffModel diffModel = new EcoreDiffEngine().doDiff(match);
Resource resourceOutputDiff = resourceSet.createResource(URI
.createFileURI(locateProject+"/temp/diff1.xmi"));
resourceOutputDiff.getContents().add(diffModel);
resourceOutputDiff.save(null);

ModelUtils.save(diffModel, locateProject+"test.emfdiff");

How can I create a reponse.emfdiff which show like the file form the
compare plug in?

thanks
Previous Topic:Question about the picture CompareGlobal.png
Next Topic:Teneo 1.0.4 & DeleteCommand
Goto Forum:
  


Current Time: Fri Apr 26 09:24:20 GMT 2024

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

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

Back to the top