我想通过扩展第三方 EMF 元模型来创建自己的元模型。目前我正在使用第三方ecore-model,并且想向特定的EClass 添加额外的属性。由于开源许可协议(protocol),我无法更改现有元模型。我在互联网上搜索了解决方案,但没有找到任何解决方案。任何帮助将不胜感激。
最佳答案
您可以查看 EMF-Facet 项目:
https://www.eclipse.org/facet/
...EMF Facet proposes a solution to extend existing Ecore metamodels without having to modify them. The idea is to provide non-intrusive mechanisms to add new features (types, attributes, operations and references) to a metamodel...
我不确定您正在寻找什么,但也许它可以为您提供想法或对其他技术的指导。
关于eclipse - 扩展第三方ecore元模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31198090/