Force mdt.uml2 to disable generation of new xmi:id [message #625304] |
Thu, 25 October 2007 07:14 |
Eclipse User |
|
|
|
Hi,
I am reading XMIs with the XMIResourceFactoryImpl and save them to .uml
via UMLResourceFactoryImpl. That works perfect, but there is one problem:
After saving them to .uml, all xmi:ids has changed, so that applied
stereotypes (stored in XMI) refer _sometimes_ to more than one element
(for example a stereotype that is applied to a class is after converting
it also applied to an ecore:EClass from the profile). The reason is,
that the elements suddenly have the same xmi:id.
The generated .uml seems to be loaded correctly with the FactoryImpl,
but the UML model viewer having problem with the stereotypes now.
Instead of showing a class like <<MyStereotype>><Class>TestClass, the
stereotype isn't displayed and a MyStereotype-Element (symbol is a star)
is at the bottom of the file. If it's neccessary to find the problem, I
will upload some pictures or xmi-files.
So, is there a way to keep the IDs from the XMI file?
|
|
|
Powered by
FUDForum. Page generated in 0.03452 seconds