Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Re: How can I use EMF Compare programatically
Re: How can I use EMF Compare programatically [message #93116] Fri, 10 August 2007 07:34 Go to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------050205090704050205030003
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Sourabh,

For questions about EMF compare, it's best to use the EMFT newsgroup,
which I've added to the "to" list of the reply, and to prefix your
subject line with [Compare].

This tutorial explains how to generate a model assuming you have a
schema for your XML files:

Tutorial: Generating an EMF Model using XML Schema
< http://dev.eclipse.org/viewcvs/indextools.cgi/*checkout*/org .eclipse.emf/doc/org.eclipse.emf.doc/tutorials/xlibmod/xlibm od.html>

The compare framework should be able to help you compare two instances
of your model.


Sourabh S Joshi wrote:
> Hello,
>
> I am stuck at a place in my project, so I need your help. I will
> explain my use case to u all.
> I have an xml file say MyFormDescriptor.xml. It contains a forms tag
> under which I can have as many form tags as I want. <form> tag
> contains various tags like <grid>,<repeater>,<error> etc.
> I want a way to know at dynamically (at runtime), which form tag has
> changed so that I can process the tag likewise.
>
> I decided to use EMF compare for this. I want to know whether there is
> any API which can help me to programatically generate an emf model for
> this xml file and an API for comparing two instances of the same file
> on save event. so as to get the change delta(the tag which got changed).
>
> Thanking you in advance.
>


--------------050205090704050205030003
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sourabh,<br>
<br>
For questions about EMF compare, it's best to use the EMFT newsgroup,
which I've added to the "to" list of the reply, and to prefix your
subject line with [Compare].
Re: How can I use EMF Compare programatically [message #93176 is a reply to message #93116] Fri, 10 August 2007 10:44 Go to previous message
Eclipse UserFriend
Hi,

As Ed said you'll first need to use the EMF-XSD component to generate an EMF
model from an XML Schema.

Then you may use emf compare to compare your models, I started an FAQ on the
wiki for this kind of needs (this link is both for comparison inside or
outside Eclipse)

http://wiki.eclipse.org/EMF_Compare_FAQ#Is_EMF_Compare.2C_as _EMF.2C_able_to_run_outside_of_Eclispe_.3F

Cheers,

Cédric Brun
Obeo

Ed Merks wrote:

> Sourabh,
>
> For questions about EMF compare, it's best to use the EMFT newsgroup,
> which I've added to the "to" list of the reply, and to prefix your
> subject line with [Compare].
>
> This tutorial explains how to generate a model assuming you have a
> schema for your XML files:
>
> Tutorial: Generating an EMF Model using XML Schema
>
< http://dev.eclipse.org/viewcvs/indextools.cgi/*checkout*/org .eclipse.emf/doc/org.eclipse.emf.doc/tutorials/xlibmod/xlibm od.html>
>
> The compare framework should be able to help you compare two instances
> of your model.
>
>
> Sourabh S Joshi wrote:
>> Hello,
>>
>> I am stuck at a place in my project, so I need your help. I will
>> explain my use case to u all.
>> I have an xml file say MyFormDescriptor.xml. It contains a forms tag
>> under which I can have as many form tags as I want. <form> tag
>> contains various tags like <grid>,<repeater>,<error> etc.
>> I want a way to know at dynamically (at runtime), which form tag has
>> changed so that I can process the tag likewise.
>>
>> I decided to use EMF compare for this. I want to know whether there is
>> any API which can help me to programatically generate an emf model for
>> this xml file and an API for comparing two instances of the same file
>> on save event. so as to get the change delta(the tag which got changed).
>>
>> Thanking you in advance.
>>
Re: How can I use EMF Compare programatically [message #609457 is a reply to message #93116] Fri, 10 August 2007 10:44 Go to previous message
Eclipse UserFriend
Hi,

As Ed said you'll first need to use the EMF-XSD component to generate an EMF
model from an XML Schema.

Then you may use emf compare to compare your models, I started an FAQ on the
wiki for this kind of needs (this link is both for comparison inside or
outside Eclipse)

http://wiki.eclipse.org/EMF_Compare_FAQ#Is_EMF_Compare.2C_as _EMF.2C_able_to_run_outside_of_Eclispe_.3F

Cheers,

Cédric Brun
Obeo

Ed Merks wrote:

> Sourabh,
>
> For questions about EMF compare, it's best to use the EMFT newsgroup,
> which I've added to the "to" list of the reply, and to prefix your
> subject line with [Compare].
>
> This tutorial explains how to generate a model assuming you have a
> schema for your XML files:
>
> Tutorial: Generating an EMF Model using XML Schema
>
< http://dev.eclipse.org/viewcvs/indextools.cgi/*checkout*/org .eclipse.emf/doc/org.eclipse.emf.doc/tutorials/xlibmod/xlibm od.html>
>
> The compare framework should be able to help you compare two instances
> of your model.
>
>
> Sourabh S Joshi wrote:
>> Hello,
>>
>> I am stuck at a place in my project, so I need your help. I will
>> explain my use case to u all.
>> I have an xml file say MyFormDescriptor.xml. It contains a forms tag
>> under which I can have as many form tags as I want. <form> tag
>> contains various tags like <grid>,<repeater>,<error> etc.
>> I want a way to know at dynamically (at runtime), which form tag has
>> changed so that I can process the tag likewise.
>>
>> I decided to use EMF compare for this. I want to know whether there is
>> any API which can help me to programatically generate an emf model for
>> this xml file and an API for comparing two instances of the same file
>> on save event. so as to get the change delta(the tag which got changed).
>>
>> Thanking you in advance.
>>
Previous Topic:[Teneo] Create table fails in Integration Build I200704230019
Next Topic:[Teneo] New feature I've written for your consideration / discussion: extended references
Goto Forum:
  


Current Time: Thu Jul 03 19:05:42 EDT 2025

Powered by FUDForum. Page generated in 0.03748 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top