|
Re: Is this possible with EMFCompare? [message #621878 is a reply to message #621876] |
Wed, 02 December 2009 16:38 |
|
This is a multi-part message in MIME format.
--------------030609010308030706030502
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Randi,
comments inlined.
Randi wrote:
> Hello All,
>
> I want to compare 2 xmi files and make a delta(attributes added/deleted
> etc) of it.
>
> Is it possible to use EMF Compare for this in standalone?
EMF Compare is tested to be usable in standalone mode. Check out the
org.eclipse.emf.compare.example.standalone project from the CVS for an
example of how to do it.
>
> I checked the code from the CVS , but I only manage to get the match
> Model from it when I load 2 UML models? But I didn't manage to load only
> the 2 xmi's in it . I always get an exception.
Without the exception and its trace, can't say much. Though loading UML
models with xmi extension is somewhat of a bad idea; EMF detects the
file contains UML and does the necessary arrangements according to the
file extension. Not sure if this applies to standalone loading though.
>
> What is exactly needed to compare 2 xmi's via EMF Compare ? Do I need to
> give up also the UML's or is it enough to give only the xmi's ?
I do not understand this. What is your xmi file if it is not your UML model?
>
> Also in the standalone version there is some comment:
> // Register additionnal packages here. For UML2 for instance :
>
> But how can I do this for loading xmi , what is the code for this?
see
http://wiki.eclipse.org/MDT/UML2/FAQ#What.27s_required_to_lo ad_a_UML_.28.uml.29_resource_from_a_standalone_application.3 F
replacing the UML extension by "xmi"; not sure if this will work as
expected.
>
> Also can I serialize the Diffmodel for example with eg JAXB ?Or how can
> I do this . I want to make Java object eg DiffModel from this delta?
look at the standalone example. How you serialize the model is you call;
be it through the standard EMF "Resource#save()" or some other mean.
>
> Many thanks
> Randi
Laurent Goubet
Obeo
--------------030609010308030706030502
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"
YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------030609010308030706030502--
|
|
|
Powered by
FUDForum. Page generated in 0.02984 seconds