Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Re: Need help on using EMF Compare feature
Re: Need help on using EMF Compare feature [message #521626] Thu, 18 March 2010 06:42 Go to next message
Ed Merks is currently offline Ed Merks
Messages: 24553
Registered: July 2009
Senior Member
Viswanath,

It's best to ask about EMF Compare on the EMFT newsgroup/forum starting
with [EMF Compare] in the subject line; I've added it to the "to" list
of the reply.

I don't believe there's any support for graphically visualizing the
model differences.


viswanath wrote:
> Hi I am new user to Eclipse,
>
> With the help of the documentation online about the EMF compare
> plugin, I was able to compare two state charts.
>
> But the diff is text based, How can I get the diff in model based, or
> is there any provision to convert the diff text into model by some
> means .. Need Urgent help.
>
> Thanks in advance.
> Viswanath B
> Embedded developer in Automotive OEM.
>
Re: Need help on using EMF Compare feature [message #522354 is a reply to message #521626] Mon, 22 March 2010 09:24 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1548
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010508080405040801050505
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

Thanks for the forwarding Ed :).

Viswanath, The diff you obtain through EMF Compare is actually a model,
and it is serialized as an xmi file. How do you use EMF Compare and how
did you obtain a "text based" diff?

Laurent Goubet
Obeo

Ed Merks wrote:
> Viswanath,
>
> It's best to ask about EMF Compare on the EMFT newsgroup/forum starting
> with [EMF Compare] in the subject line; I've added it to the "to" list
> of the reply.
>
> I don't believe there's any support for graphically visualizing the
> model differences.
>
>
> viswanath wrote:
>> Hi I am new user to Eclipse,
>>
>> With the help of the documentation online about the EMF compare
>> plugin, I was able to compare two state charts.
>>
>> But the diff is text based, How can I get the diff in model based, or
>> is there any provision to convert the diff text into model by some
>> means .. Need Urgent help.
>>
>> Thanks in advance. Viswanath B
>> Embedded developer in Automotive OEM.
>>


--------------010508080405040801050505
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=
--------------010508080405040801050505--
Re: Need help on using EMF Compare feature [message #523037 is a reply to message #522354] Wed, 24 March 2010 16:16 Go to previous message
Marcelo  is currently offline Marcelo
Messages: 14
Registered: February 2010
Junior Member
Hi, Viswanath,

Have you tried to save your diff model in .emfdiff format?
Try this:

final ComparisonResourceSnapshot snapshot =
DiffFactory.eINSTANCE.createComparisonResourceSnapshot();
snapshot.setDate(Calendar.getInstance().getTime());
snapshot.setMatch(matchModel); // your match model generated by the
comparison
snapshot.setDiff(diffModel); // your diff model generated by the comparison
ModelUtils.save(snapshot, "result.emfdiff");

I am supposing you are using the recent releases of EMF Compare. Older
releases have the same logic, but different class names.

Open the result.emfdiff file and tell us if this is what you needed. It
should be open in "Compare" view.

All the best,
--
Marcelo Schots

Em 22/03/2010 10:24, Laurent Goubet escreveu:
> Hi,
>
> Thanks for the forwarding Ed :).
>
> Viswanath, The diff you obtain through EMF Compare is actually a model,
> and it is serialized as an xmi file. How do you use EMF Compare and how
> did you obtain a "text based" diff?
>
> Laurent Goubet
> Obeo
>
> Ed Merks wrote:
>> Viswanath,
>>
>> It's best to ask about EMF Compare on the EMFT newsgroup/forum
>> starting with [EMF Compare] in the subject line; I've added it to the
>> "to" list of the reply.
>>
>> I don't believe there's any support for graphically visualizing the
>> model differences.
>>
>>
>> viswanath wrote:
>>> Hi I am new user to Eclipse,
>>>
>>> With the help of the documentation online about the EMF compare
>>> plugin, I was able to compare two state charts.
>>>
>>> But the diff is text based, How can I get the diff in model based, or
>>> is there any provision to convert the diff text into model by some
>>> means .. Need Urgent help.
>>>
>>> Thanks in advance. Viswanath B
>>> Embedded developer in Automotive OEM.
>>>
>
Re: Need help on using EMF Compare feature [message #622363 is a reply to message #521626] Mon, 22 March 2010 09:24 Go to previous message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1548
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010508080405040801050505
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

Thanks for the forwarding Ed :).

Viswanath, The diff you obtain through EMF Compare is actually a model,
and it is serialized as an xmi file. How do you use EMF Compare and how
did you obtain a "text based" diff?

Laurent Goubet
Obeo

Ed Merks wrote:
> Viswanath,
>
> It's best to ask about EMF Compare on the EMFT newsgroup/forum starting
> with [EMF Compare] in the subject line; I've added it to the "to" list
> of the reply.
>
> I don't believe there's any support for graphically visualizing the
> model differences.
>
>
> viswanath wrote:
>> Hi I am new user to Eclipse,
>>
>> With the help of the documentation online about the EMF compare
>> plugin, I was able to compare two state charts.
>>
>> But the diff is text based, How can I get the diff in model based, or
>> is there any provision to convert the diff text into model by some
>> means .. Need Urgent help.
>>
>> Thanks in advance. Viswanath B
>> Embedded developer in Automotive OEM.
>>


--------------010508080405040801050505
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=
--------------010508080405040801050505--
Re: Need help on using EMF Compare feature [message #622394 is a reply to message #522354] Wed, 24 March 2010 16:16 Go to previous message
Marcelo  is currently offline Marcelo
Messages: 14
Registered: February 2010
Junior Member
Hi, Viswanath,

Have you tried to save your diff model in .emfdiff format?
Try this:

final ComparisonResourceSnapshot snapshot =
DiffFactory.eINSTANCE.createComparisonResourceSnapshot();
snapshot.setDate(Calendar.getInstance().getTime());
snapshot.setMatch(matchModel); // your match model generated by the
comparison
snapshot.setDiff(diffModel); // your diff model generated by the comparison
ModelUtils.save(snapshot, "result.emfdiff");

I am supposing you are using the recent releases of EMF Compare. Older
releases have the same logic, but different class names.

Open the result.emfdiff file and tell us if this is what you needed. It
should be open in "Compare" view.

All the best,
--
Marcelo Schots

Em 22/03/2010 10:24, Laurent Goubet escreveu:
> Hi,
>
> Thanks for the forwarding Ed :).
>
> Viswanath, The diff you obtain through EMF Compare is actually a model,
> and it is serialized as an xmi file. How do you use EMF Compare and how
> did you obtain a "text based" diff?
>
> Laurent Goubet
> Obeo
>
> Ed Merks wrote:
>> Viswanath,
>>
>> It's best to ask about EMF Compare on the EMFT newsgroup/forum
>> starting with [EMF Compare] in the subject line; I've added it to the
>> "to" list of the reply.
>>
>> I don't believe there's any support for graphically visualizing the
>> model differences.
>>
>>
>> viswanath wrote:
>>> Hi I am new user to Eclipse,
>>>
>>> With the help of the documentation online about the EMF compare
>>> plugin, I was able to compare two state charts.
>>>
>>> But the diff is text based, How can I get the diff in model based, or
>>> is there any provision to convert the diff text into model by some
>>> means .. Need Urgent help.
>>>
>>> Thanks in advance. Viswanath B
>>> Embedded developer in Automotive OEM.
>>>
>
Previous Topic:Generating EMF from advanced XSDs
Next Topic:ANT task for converting an Ecore metamodel to an EMF (Emfatic) file?
Goto Forum:
  


Current Time: Fri May 24 01:56:40 EDT 2013

Powered by FUDForum. Page generated in 0.01812 seconds