Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Split Generated Model in multiple files
icon5.gif  Split Generated Model in multiple files [message #1710536] Wed, 07 October 2015 11:29 Go to next message
Test User is currently offline Test UserFriend
Messages: 1
Registered: October 2015
Junior Member
Hi guys,

i just started working with EMF and created a model according to this tutorial http://eclipsesource.com/blogs/tutorials/emf-tutorial/.

My project is quite big and is intended to be used by multiple developers at once. In this example the MyBowling.model is used. The model itself is saved as plain xml on the filesystem.

Is it possible to create a model that saves its children in different files?
For example we have the league.bowling file. And it only references another file for each player instead of containing all players in one file.

Greetings,

an emf newbie
Re: Split Generated Model in multiple files [message #1710551 is a reply to message #1710536] Wed, 07 October 2015 13:29 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30541
Registered: July 2009
Senior Member
Comments below.

On 07/10/2015 3:08 PM, Test User wrote:
> Hi guys,
>
> i just started working with EMF and created a model according to this
> tutorial http://eclipsesource.com/blogs/tutorials/emf-tutorial/.
>
> My project is quite big and is intended to be used by multiple
> developers at once. In this example the MyBowling.model is used. The
> model itself is saved as plain xml on the filesystem.
>
> Is it possible to create a model that saves its children in different
> files?
Yes. On a containment reference you can set Resolve Proxies to true
(which should be the case by default), and in the GenModel you can set
Containment Proxies to true. If you regenerate with that, you'll see
there is Control... in the context menu for the child object (Player),
which allows you to "move" it to its own resource.
> For example we have the league.bowling file. And it only references
> another file for each player instead of containing all players in one
> file.
>
> Greetings,
>
> an emf newbie
Previous Topic:Adding Drop Support To Ecore Editor
Next Topic:[CDO] Usage of setStrongReferencePolicy
Goto Forum:
  


Current Time: Mon Oct 14 16:40:47 GMT 2019

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

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

Back to the top