|
|
Re: Cross referencing model [message #1015065 is a reply to message #1015020] |
Wed, 27 February 2013 10:55 |
Matthias N Messages: 66 Registered: June 2012 |
Member |
|
|
Hi Ed,
we generate the Ecore models:
Below, there is a code snippet of A.ecore:
<eSuperTypes href="./A.ecore#//east_adl/infrastructure/elements/EAElement"/>
<eSuperTypes href="platform:/resource/org.eatop.eel.eastadl2110/model/B.ecore#//ginfrastructure/gelements/GEAPackage"/>
I guess the URI of B.ecore should be sth like
?
And yes, when I open A.ecore and edit it, save it again it works fine... But how can I tell EMF to serialize into relative URI?
[Updated on: Wed, 27 February 2013 11:04] Report message to a moderator
|
|
|
Re: Cross referencing model [message #1015100 is a reply to message #1015065] |
Wed, 27 February 2013 13:20 |
Ed Merks Messages: 33107 Registered: July 2009 |
Senior Member |
|
|
Matthias,
Be sure that you use an absolute URI for each resource you create. That
will ensure that when you save them, references between them will be
relative URIs whenever possible.
On 27/02/2013 11:55 AM, Matthias N wrote:
> Hi Ed,
> we generate the Ecore models:
>
> Below, there is a code snippet of A.ecore:
>
> <eSuperTypes
> href="./A.ecore#//east_adl/infrastructure/elements/EAElement"/>
> <eSuperTypes
> href="platform:/resource/org.eatop.eel.eastadl2110/model/B.ecore#//ginfrastructure/gelements/GEAPackage"/>
>
>
> I guess the URI of B.ecore should be sth like
> /B.ecore#// ?
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02522 seconds