Reputation: 10045
I have multiple Ecore files for different purposes. I am now developing a tool which uses multiple models.
Can I develop an ECore model which references other models? For example when I have A.Ecore and B.Ecore, how can I create a C.Ecore, in which I have attributes with types from A.Ecore or B.Ecore?
Upvotes: 8
Views: 4786
Reputation: 28188
To reference one Ecore model from another:
C.ecore
.platform:/resource.../webpage.ecore
item.A.ecore
or B.ecore
.Upvotes: 12
Reputation: 10045
Loading a resource in the ECore editor lets you import other models. Once loaded, the types from other model can be used in the first model.
Upvotes: 2