Cross referencing model [message #1015013] |
Wed, 27 February 2013 03:13  |
Eclipse User |
|
|
|
Hi,
I've two Ecore models: A.ecore and B.ecore
A.ecore references some elements in B.ecore
When I open A.ecore it automatically loads B.ecore as well, that's fine:
platform:/resource/org.eatop.eel.eastadl2110/model/A.ecore
platform:/resource/org.eatop.eel.eastadl2110/model/B.ecore
Okay, now I copy those two ecore files into another location (new-folder) of my workspace and try to open them again:
platform:/resource/new-folder/A.ecore
platform:/resource/org.eatop.eel.eastadl2110/model/B.ecore
The path of B.ecore didn't get updated?!, Hence A.ecore can't load the model elements in B.ecore.
Any ideas how to solve this?
|
|
|
|
|
Re: Cross referencing model [message #1015100 is a reply to message #1015065] |
Wed, 27 February 2013 08:20  |
Eclipse User |
|
|
|
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#// ?
|
|
|
Powered by
FUDForum. Page generated in 0.05227 seconds