简体   繁体   中英

Retrieve ecore model from .jar file

I want to retrieve the compare.ecore model from a .jar file shown in the picture.

要检索的模型(compare.ecore)

I tried to copy and paste it in the Eclipse IDE, but it didn't work. I opened the .jar file in the given path with WinRAR, but I can't find the model in the archive.

How can I retrieve this model?

Do not attempt to import the ecore file from the jar. Rather:

1. Window -> Show View -> Other.

显示其他视图

2. Search for "Plug-Ins" -> OK.

搜索插件

3. org.eclipse.emf.compare -> Import As -> Source Project.

在此输入图像描述

4. Package Explorer -> 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...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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