create models to show in compare view [message #620959] |
Tue, 19 May 2009 21:31 |
Thomas L 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
|
|
|
Powered by
FUDForum. Page generated in 0.03415 seconds