|
|
|
|
Re: Using MultiResourceEObject [message #417463 is a reply to message #417461] |
Tue, 11 March 2008 21:06 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Campbell,
I just ignore things I don't understand. :-P
In general, with the advent of support for cross resource containment,
you can literally put every object in a different resource if you want
that. Even the simple library tutorial example supports this type of
thing. I.e., create two libraries, one with books and the other with
writer, open one and use Load Resource... to open the other, and the
create relations between writers and books. These will serialize as
cross resource references...
Campbell McCausland wrote:
> I just noticed that this class is not part of EMF, but part of the
> Eclipse Process Framework project. Sorry, if I sent you off searching
> for it :)
>
> However, perhaps someone can comment on the need for such support.
>
> For provide more detail, say I was creating some kind of java modeling
> tool that contained packages. I would like to have EMF store the data
> for each package its own file, even (and this is central to my
> challenge) those packages which are nested within another.
>
> I want each modeled Package to map to both a Folder resource (to
> preserve namespace semantics) and to a File resource (that contains
> the actual package data such as its name and its contents).
>
> Is it easy to have EMF do this, or do I need to abstract a class like
> org.eclipse.epf.uma.ecore.impl.MultiResourceEObject to do it?
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03201 seconds