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
Member
Hello,

I have the following XMI file that is based on CMOF: https://www.omg.org/spec/SBVR/20160601/SBVR-XMI-Metamodel.xml

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.

Regards,
Bruce

[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: 7655
Registered: July 2009
Senior Member
Hi

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. https://bugs.eclipse.org/bugs/show_bug.cgi?id=437716 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="http://schema.omg.org/spec/XMI/2.1" xmlns:cmof="http://schema.omg.org/spec/MOF/2.0/cmof.xml">

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="http://schema.omg.org/spec/XMI/2.0" xmlns:cmof="http://schema.omg.org/spec/MOF/2.0/cmof.xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

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

https://bugs.eclipse.org/bugs/show_bug.cgi?id=533703 raised

Regards

Ed Willink
Previous Topic:Hide the sterotype "part" in an IBD
Next Topic:BDD Diagram SysML
Goto Forum:
  


Current Time: Fri Apr 26 04:10:56 GMT 2024

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

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

Back to the top