Skip to main content



      Home
Home » Modeling » UML2 » Force mdt.uml2 to disable generation of new xmi:id
Force mdt.uml2 to disable generation of new xmi:id [message #625304] Thu, 25 October 2007 07:14
Eclipse UserFriend
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?
Previous Topic:Needs uml models for testing puropose
Next Topic:Profile2EPackageConverter
Goto Forum:
  


Current Time: Sat Aug 30 19:49:46 EDT 2025

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

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

Back to the top