简体   繁体   English

从.jar文件中检索ecore模型

[英]Retrieve ecore model from .jar file

I want to retrieve the compare.ecore model from a .jar file shown in the picture. 我想从图片中显示的.jar文件中检索compare.ecore模型。

要检索的模型(compare.ecore)

I tried to copy and paste it in the Eclipse IDE, but it didn't work. 我试图将它复制并粘贴到Eclipse IDE中,但它不起作用。 I opened the .jar file in the given path with WinRAR, but I can't find the model in the archive. 我用WinRAR打开了给定路径中的.jar文件,但是在档案中找不到该模型。

How can I retrieve this model? 我该如何检索此模型?

Do not attempt to import the ecore file from the jar. 不要尝试从jar导入ecore文件。 Rather: 而是:

1. Window -> Show View -> Other. 1.窗口 - >显示视图 - >其他。

显示其他视图

2. Search for "Plug-Ins" -> OK. 2.搜索“插件” - >确定。

搜索插件

3. org.eclipse.emf.compare -> Import As -> Source Project. 3. org.eclipse.emf.compare - >导入为 - >源项目。

在此输入图像描述

4. Package Explorer -> org.eclipse.emf.compare -> model -> compare.ecore 4.包资源管理器 - > org.eclipse.emf.compare - > model - > compare.ecore

在此输入图像描述

I found an easy way to retrieve the model. 我找到了一种简单的方法来检索模型。 I opened it in Eclipse, made a change and saved it via Save As... 我在Eclipse中打开它,进行了更改并通过另存为保存...

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

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