|
Re: Model Versioning / Updating Content [message #492846 is a reply to message #492774] |
Thu, 22 October 2009 03:00 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------000502060602040401070902
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Volker,
Here's one approach that UML used:
http://wiki.eclipse.org/EMF/Recipes#Recipe:_Data_Migration
Volker Wegert wrote:
> Hello all,
>
> I'll need to apply some changes to an Ecore model used in an application that
> is already in use. It looks like I'll have to update the content that already
> exists because the changes to the model won't allow me to read the old content
> with the new model.
>
> The GMF way of updating the model (provide a context menu entry to update the
> model and let the editor crash and burn if the user forgot to update the
> model) is not really applicable in my case - I need some logic to determine
> the model version and update the file automatically when it's opened for the
> first time. I was thinking about a version property in the top-level class and
> a SAX parser to determine the version - or is there an easier way to do this?
>
> For the update itself, what technology would you use? The project already is
> an oAW project, so I was thinking about using Xtend. However, as far as I can
> tell, that would require me to drag along the old Ecore models because
> otherwise I won't be able to load the content, right? Perhaps I could also use
> XSLT, although that's not really my favorite solution. Any other ideas? Do you
> know of other projects where this has been implemented?
>
> Thanks
> Volker
>
--------------000502060602040401070902
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Volker,<br>
<br>
Here's one approach that UML used:<br>
<blockquote><a
href="http://wiki.eclipse.org/EMF/Recipes#Recipe:_Data_Migration">http://wiki.eclipse.org/EMF/Recipes#Recipe:_Data_Migration</a><br>
</blockquote>
<br>
<br>
Volker Wegert wrote:
<blockquote cite="mid:84tyxt2thv.fsf@zak.home.volker-wegert.de"
type="cite">
<pre wrap="">Hello all,
I'll need to apply some changes to an Ecore model used in an application that
is already in use. It looks like I'll have to update the content that already
exists because the changes to the model won't allow me to read the old content
with the new model.
The GMF way of updating the model (provide a context menu entry to update the
model and let the editor crash and burn if the user forgot to update the
model) is not really applicable in my case - I need some logic to determine
the model version and update the file automatically when it's opened for the
first time. I was thinking about a version property in the top-level class and
a SAX parser to determine the version - or is there an easier way to do this?
For the update itself, what technology would you use? The project already is
an oAW project, so I was thinking about using Xtend. However, as far as I can
tell, that would require me to drag along the old Ecore models because
otherwise I won't be able to load the content, right? Perhaps I could also use
XSLT, although that's not really my favorite solution. Any other ideas? Do you
know of other projects where this has been implemented?
Thanks
Volker
</pre>
</blockquote>
</body>
</html>
--------------000502060602040401070902--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Model Versioning / Updating Content [message #492851 is a reply to message #492774] |
Thu, 22 October 2009 05:36 |
|
Hi Volker,
I just talked about my experiences:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=292950#c1
Maybe you get some ideas ;-)
Cheers
/Eike
----
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Volker Wegert schrieb:
> Hello all,
>
> I'll need to apply some changes to an Ecore model used in an application that
> is already in use. It looks like I'll have to update the content that already
> exists because the changes to the model won't allow me to read the old content
> with the new model.
>
> The GMF way of updating the model (provide a context menu entry to update the
> model and let the editor crash and burn if the user forgot to update the
> model) is not really applicable in my case - I need some logic to determine
> the model version and update the file automatically when it's opened for the
> first time. I was thinking about a version property in the top-level class and
> a SAX parser to determine the version - or is there an easier way to do this?
>
> For the update itself, what technology would you use? The project already is
> an oAW project, so I was thinking about using Xtend. However, as far as I can
> tell, that would require me to drag along the old Ecore models because
> otherwise I won't be able to load the content, right? Perhaps I could also use
> XSLT, although that's not really my favorite solution. Any other ideas? Do you
> know of other projects where this has been implemented?
>
> Thanks
> Volker
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03100 seconds