How do I import a SysML model (in XMI format) to Papyrus?

牧云@^-^@ 提交于 2019-12-04 23:42:09

问题


I have an XMI 2.1 formatted SysML model, exported from Enterprise Architect.

I'm evaluating Papyrus as an alternate model IDE. I'd like to import my XMI file into Papyrus, including all structural and behavioral blocks.

Here's what I've tried:

  1. Create a new Papyrus project.
  2. Right-click on project, select Import, and browse to my XMI file.

However, this just includes the XMI file in the Papyrus project. If I open it, I see the model elements as XML.

Does Papyrus support importing XMI, and if so, how do I accomplish this?


回答1:


I worked through a similar problem recently, though with UML, so your mileage may vary.

I solved it with a hint regarding the Eclipse EMF from here: http://www.eclipse.org/forums/index.php?t=msg&goto=606949&S=333b8c3faacad6b950cf6247312f9c3e

Since SysML is a dialect of UML2, you should be able to create a new EMF project; and in the project creation wizard, you will be presented with the option to import your XMI file.



来源:https://stackoverflow.com/questions/5651380/how-do-i-import-a-sysml-model-in-xmi-format-to-papyrus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!