Home » Modeling » Papyrus » Import QUDV ISO-80000-1 libraries(Quantity Unit Dimension Value)
|
Re: Import QUDV ISO-80000-1 libraries [message #1504500 is a reply to message #1503411] |
Tue, 09 December 2014 10:01 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi Johan,
Eclipse/UML2 supports various formats for UML documents:
- Normative XMI files: File extension = *.xmi, UML Namespace = http://www.omg.org/spec/UML/20110701
- Eclipse UML files: File extension = *.uml, UML Namespace = http://www.eclipse.org/uml2/5.0.0/UML
So, if you change the file extension, you need to also change the xmlns:uml Namespace (xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML"). After that, it works (Well, partially, because there are still some missing dependencies, but the model can be loaded in Papyrus)
Regards,
Camille
Camille Letavernier
|
|
|
Re: Import QUDV ISO-80000-1 libraries [message #1505087 is a reply to message #1504500] |
Tue, 09 December 2014 20:42 |
Johan Van Noten Messages: 87 Registered: July 2009 |
Member |
|
|
From your reply, I conclude that it should be possible to directly import the normative XMIs without issue into Papyrus, except for some "missing dependencies".
Unfortunately, I tried following steps:
* download http://www.omg.org/spec/SysML/20120401/ISO-80000-1-QUDV.xmi
* right-click it, select New | Papyrus model
I end up with a model, but the model explorer remains empty.
Is this because of the "missing dependencies" that you mention?
I looked at http://wiki.eclipse.org/MDT/UML2/UML2_4.0_Migration_Guide (the QUDV.xmi still seems to be written with 2.4.1 XMI). I see that there is quite a bit of difference between the URIs for Eclipse UML2 and those that are used by OMG. No problem for the "dumb end-user", since making this mapping is exactly what an XMI importer is all about, no? The end-user should not be patching XMI files by hand, imho.
In that sense, we can't blame Papyrus of course, since you only use the Eclipse UML2 import facilities. Would you agree that this is a shortcoming on the Eclipse UML2 importer? Or do I misjudge this?
Thanks,
Johan
|
|
| | | |
Re: Import QUDV ISO-80000-1 libraries [message #1505697 is a reply to message #1505665] |
Wed, 10 December 2014 08:31 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi Johan,
I forgot to mention that, although the UML2 project properly supports Eclipse/UML and OMG/XMI files, Papyrus only supports *.uml files as its semantics model (i.e. main model, the one from which you create DI/Notation). So, you actually need to change the file extension, *and* the namespace, for Papyrus to be able to handle it.
OMG/XMI models are supposed to be importable in Papyrus (Via Package-import for example). However, I checked yesterday, and they weren't properly supported:
454546: [UML Import] Can't import UML resources if they don't have the *.uml file extension
https://bugs.eclipse.org/bugs/show_bug.cgi?id=454546
I've now fixed this bug on Mars/Nightly (Papyrus 1.1.0 Nightly). But this still only provides a partial support of OMG/XMI models, and you still need to rename these models to UML (+ Namespace) to have a full support from Papyrus
Regards,
Camille
Camille Letavernier
|
|
|
Goto Forum:
Current Time: Fri Sep 20 02:04:58 GMT 2024
Powered by FUDForum. Page generated in 0.26785 seconds
|