|
Re: [EMF Compare] How to get programmatically the number of differences? [message #96438 is a reply to message #96423] |
Tue, 11 September 2007 10:32  |
Eclipse User |
|
|
|
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.
|
|
|
Re: [EMF Compare] How to get programmatically the number of differences? [message #609692 is a reply to message #96423] |
Tue, 11 September 2007 10:32  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02548 seconds