[英]Can I reuse ECore models by importing them into other models?
I have multiple Ecore files for different purposes. 我有多个Ecore文件用于不同的目的。 I am now developing a tool which uses multiple models.
我现在正在开发一个使用多个模型的工具。
Can I develop an ECore model which references other models? 我可以开发一个引用其他模型的ECore模型吗? 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?
例如,当我有A.Ecore和B.Ecore时,如何创建一个C.Ecore,其中我有A.Ecore或B.Ecore类型的属性?
To reference one Ecore model from another: 从另一个引用一个Ecore模型:
C.ecore
. C.ecore
。 platform:/resource.../webpage.ecore
item. platform:/resource.../webpage.ecore
项。 A.ecore
or B.ecore
. A.ecore
或B.ecore
。 Loading a resource in the ECore editor lets you import other models. 在ECore编辑器中加载资源可以导入其他模型。 Once loaded, the types from other model can be used in the first model.
加载后,可以在第一个模型中使用其他模型中的类型。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.