Skip to main content



      Home
Home » Newcomers » Newcomers » How can I use EMF Compare programatically
How can I use EMF Compare programatically [message #226862] Fri, 10 August 2007 03:08 Go to next message
Eclipse UserFriend
Originally posted by: sourabhsj.mastek.com

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 #226899 is a reply to message #226862] Fri, 10 August 2007 07:34 Go to previous messageGo 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 #226919 is a reply to message #226899] Fri, 10 August 2007 10:44 Go to previous messageGo to next 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 #227198 is a reply to message #226919] Mon, 13 August 2007 09:24 Go to previous message
Eclipse UserFriend
Originally posted by: sourabhsj.mastek.com

Thank you very much Ed and Cedric.
Previous Topic:I Cant Find BIRT New project menu
Next Topic:Move class to its own file
Goto Forum:
  


Current Time: Sun Nov 09 14:59:54 EST 2025

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

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

Back to the top