Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF serialization in several files
EMF serialization in several files [message #905923] Fri, 31 August 2012 06:10 Go to next message
Mickaël Vera is currently offline Mickaël Vera
Messages: 8
Registered: February 2012
Junior Member
Hi,

I'd like to serialize EMF entities of a model into several .xmi files. I've seen this is possible but I couldn't find a complete sample. Does anybody have links on how to do this ?

Thanks,
Mickaël
Re: EMF serialization in several files [message #905948 is a reply to message #905923] Fri, 31 August 2012 06:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25917
Registered: July 2009
Senior Member
Mickaël,

You create new resources in the resource set with the URI where you want
the objects saved, add the object(s) to the resource's contents, and
then save them all.


On 31/08/2012 12:10 PM, Mickaël Vera wrote:
> Hi,
>
> I'd like to serialize EMF entities of a model into several .xmi files.
> I've seen this is possible but I couldn't find a complete sample. Does
> anybody have links on how to do this ?
>
> Thanks,
> Mickaël
Re: EMF serialization in several files [message #906010 is a reply to message #905923] Fri, 31 August 2012 09:07 Go to previous message
Mickaël Vera is currently offline Mickaël Vera
Messages: 8
Registered: February 2012
Junior Member
Thanks Ed,

I though that when an entity was in a resource all entities reachable from this entity where persisted. I realize that I was wrong, a post from you here explains this:

www.eclipsezone.com/eclipse/forums/t69491.html

Now it's clear to me how to do this. Here some more information on how to read a model persisted in several files:

www.bar54.de/blog/2012/04/emf-load-model-with-eproxyuri-references/

Regards,
Mickaël
Previous Topic:CDO ReferentialIntegrityException
Next Topic:Copy an object into an existing one
Goto Forum:
  


Current Time: Thu Jul 24 06:49:38 EDT 2014

Powered by FUDForum. Page generated in 0.01657 seconds