|
Re: [EMF Compare] How to get programmatically the number of differences? [message #96438 is a reply to message #96423] |
Tue, 11 September 2007 14:32 |
Cedric Brun Messages: 431 Registered: July 2009 |
Senior Member |
|
|
Once you compare your two models you get a DiffModel instance, this instance
should contains a DiffGroup for your whole model in the "ownedElements"
reference. The DiffGroup tells you how many subchanges are encapsulated,
basically something like :
((DiffGroup)diff.getOwnedElements().get(0)).getSubchanges();
Will return the number of changes in the diff model.
Cédric
Cyril Faucher wrote:
> Hi,
>
> I am comparing programmatically 2 models and I wish to get the number of
> differences between them.
> How to get programmatically this information ?
>
> Best regards,
> Cyril.
http://cedric.brun.io news and articles on eclipse and eclipse modeling.
|
|
|
Re: [EMF Compare] How to get programmatically the number of differences? [message #609692 is a reply to message #96423] |
Tue, 11 September 2007 14:32 |
Cedric Brun Messages: 431 Registered: July 2009 |
Senior Member |
|
|
Once you compare your two models you get a DiffModel instance, this instance
should contains a DiffGroup for your whole model in the "ownedElements"
reference. The DiffGroup tells you how many subchanges are encapsulated,
basically something like :
((DiffGroup)diff.getOwnedElements().get(0)).getSubchanges();
Will return the number of changes in the diff model.
Cédric
Cyril Faucher wrote:
> Hi,
>
> I am comparing programmatically 2 models and I wish to get the number of
> differences between them.
> How to get programmatically this information ?
>
> Best regards,
> Cyril.
http://cedric.brun.io news and articles on eclipse and eclipse modeling.
|
|
|
Powered by
FUDForum. Page generated in 0.02677 seconds