从 .jar 文件中检索 ecore 模型

Retrieve ecore model from .jar file

我想从图片中显示的 .jar 文件中检索 compare.ecore 模型。

我尝试将其复制并粘贴到 Eclipse IDE 中,但没有成功。我用 WinRAR 打开给定路径中的 .jar 文件,但我在存档中找不到模型。

如何检索此模型?

不要尝试从 jar 导入 ecore 文件。 相反:

1. Window -> 显示视图 -> 其他。

2. 搜索 "Plug-Ins" -> 确定。

3. org.eclipse.emf.compare -> 导入为 -> 源项目。

4. 包资源管理器 -> org.eclipse.emf.compare -> 模型 -> compare.ecore

我找到了一种检索模型的简单方法。我在 Eclipse 中打开它,进行了更改并通过另存为保存了它...