Re: [mdr-users] createExtent(String, RefObject, RefPackage[])
Martin Matula <[email protected]> Tue, 09 Aug 2005 11:07:07 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
Well, theoretically you could write an XMIReferenceResolver that would resolve the imported UML elements to existing (already imported) elements in the MDR - then it would work - i.e. if you would load the UML metamodel first and they tried to load "tracing" metamodel that imports UML XMI again, the XMIReferenceResolver would notice that and instead of loading the UML XMI second time, it would resolve the UML elements to the existing UML metamodel. Martin Pieter Van Gorp wrote: >Hi, > >On 8/8/05, Martin Matula <[email protected]> wrote: > > >>To fix this, you need to load the tracing metamodel. Now find UML >>package in this tracing metamodel and instantiate it. If you now find >>tracing package, instantiate it and pass in the instance of UML package, >>the instance of UML package will be reused. >> >> >This means that one is not allowed to use the MOF-XMI of the clustered >metamodel anymore... only the MOF-XMI importing it. Good to know, >thanks for the insight, I'll try it right away! > >Best regards, >-- Pieter. > >