Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Getting a CMOF XMI file into Papyrus
Getting a CMOF XMI file into Papyrus [message #1785623] Tue, 17 April 2018 14:58 Go to next message
Bruce Trask is currently offline Bruce TraskFriend
Messages: 58
Registered: July 2009

I have the following XMI file that is based on CMOF:

I am trying to get it into the Eclipse modeling universe somehow (anyhow) so I can view/edit etc.

I have tried renaming it to a .uml file and also saving it as .uml from the UML Editor but that does not seem to move it over to the Eclipse UML format.

Is there something I can do with Papyrus?

My only option at this point seems to be to write a QVT transformation from CMOF to Eclipse UML but it seemed to me unlikely that I would have to do this and I could instead open or import a standard CMOF file with some Eclipse tool. But perhaps not.

I wanted to check here to make sure I am on the right track.


[Updated on: Tue, 17 April 2018 15:07]

Report message to a moderator

Re: Getting a CMOF XMI file into Papyrus [message #1785636 is a reply to message #1785623] Tue, 17 April 2018 16:32 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6568
Registered: July 2009
Senior Member

CMOF is supported by the Eclipse UML2 project but nobody uses it. IIRC the most recent fix four years ago was because I was still using the OMG UML 2.3 CMOF file for OCL PIvot autogeneration. The narrow issue was fixed but I moved to true UML 2.5 UML. Your problem is an unsupported version combination.

<xmi:XMI xmi:version="2.1" xmlns:xmi="" xmlns:cmof="">

If you use /org.eclipse.uml2.uml.tests/src/org/eclipse/uml2/uml/bug/tests/Bug437977.cmof20 as a template and change the prolog to:

<xmi:XMI xmi:version="2.0" xmlns:xmi="" xmlns:cmof="" xmlns:xsi="">

it loads as a *.cmof file allowing you to save as a *.uml file. raised


Ed Willink
Previous Topic:Hide the sterotype "part" in an IBD
Next Topic:Adding a Profile to a Plugin
Goto Forum:

Current Time: Thu Jan 23 04:25:47 GMT 2020

Powered by FUDForum. Page generated in 0.02376 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top