简体   繁体   English

Ecore - 有没有办法从另一个 ecore 元模型中引用一个 ecore 元模型?

[英]Ecore - Is there a way to refer an ecore metamodel from another ecore metamodel?

I have two meta-models lets say A.ecore and B.ecore,我有两个元模型,比如说 A.ecore 和 B.ecore,

What I want to achieve is that, element A from A.core should contain(or reference) element B from B.ecore.我想要实现的是,来自 A.core 的元素 A 应该包含(或引用)来自 B.ecore 的元素 B。 So that I can link two metamodels and can provide ATL rules using these two meta-models like they are one meta-model.这样我就可以链接两个元模型,并且可以使用这两个元模型提供 ATL 规则,就像它们是一个元模型一样。

Thanks!谢谢!

In the "Sample Ecore Model Editor", right click anywhere > Load Resource... and browse accordingly to your other ecore.在“Sample Ecore Model Editor”中,右键单击任意位置 > Load Resource... 并相应地浏览到您的其他 ecore。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM