我可以通过将 ECore 模型导入其他模型来重用它们吗?
我有多个用于不同目的的 Ecore 文件。我现在正在开发一个使用多个模型的工具。
我可以开发引用其他模型的 ECore 模型吗?例如,当我有 A.Ecore 和 B.Ecore 时,如何创建 C.Ecore,其中我具有 A.Ecore 或 B.Ecore 类型的属性?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要从一个 Ecore 模型引用另一个模型:
C.ecore
。platform:/resource.../webpage.ecore
item.A.ecore
或B.ecore
。To reference one Ecore model from another:
C.ecore
.platform:/resource.../webpage.ecore
item.A.ecore
orB.ecore
.在 ECore 编辑器中加载资源可以让您导入其他模型。加载后,其他模型中的类型可以在第一个模型中使用。
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.