Skip to main content


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 10:10 Go to next message
Mickaël Vera is currently offline Mickaël VeraFriend
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 10:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF serialization in several files [message #906010 is a reply to message #905923] Fri, 31 August 2012 13:07 Go to previous message
Mickaël Vera is currently offline Mickaël VeraFriend
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: Fri Mar 29 09:06:53 GMT 2024

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

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

Back to the top