Hi Stephane, I think a few people have run into this issue. However since we use MDR to parse and LOAD the underlying meta model (http://mdr.netbeans.org). I think you’d probably get a better (more knowledgeable) response from the MDR user list: [EMAIL PROTECTED]
Chad ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fouelefak Stéphane Sent: Wednesday, March 09, 2005 10:07 AM To: 'andromda-user@lists.sourceforge.net' Subject: [Andromda-user] Problem handling stereotypes defined into a shared package Hello, I use MagicDraw 9.0 and AndroMda 3M3 with my own cartridge. I created a Profile that contains tags and stereotypes. I then use my profile into another MagicDraw project, lts call it the main project. In the main project I use a stereotype of the profile, let's say the stereotype name is "business", and tell AndroMDa ( through andromda-cartridge) to put all the objects with that stereotype into a velocity context. The following strange thing occur : when my profile is saved before the main project packages into the xmi, everything works well. If it's saved after, the stereotype "business" has no effect. It therefore seems that there is a problem in the way the node <UML:Namespace.ownedElement> is handled. This work well : I mean that andromda can put the objects with the used stereotype into the velocity context <UML:Namespace.ownedElement> <UML:Package href='MyProfile'> <XMI.extension xmi.extender='MagicDraw UML 9.0' xmi.extenderID='MagicDraw UML 9.0'> <referentPath xmi.value='::LPlatform Profile'/> </XMI.extension> </UML:Package> <UML:Package xmi.id='_9_0_19760454_1110383800684_581850_86' name='My main package'> <UML:ModelElement.stereotype> <UML:Stereotype href='MyProfile...'> </UML:Stereotype> </UML:ModelElement.stereotype> </UML:Package> </UML:Namespace.ownedElement> This does not work well : <UML:Namespace.ownedElement> <UML:Package xmi.id='_9_0_19760454_1110383800684_581850_86' name='My main package'> <UML:ModelElement.stereotype> <UML:Stereotype href='MyProfile...'> </UML:Stereotype> </UML:ModelElement.stereotype> </UML:Package> <UML:Package href='MyProfile'> <XMI.extension xmi.extender='MagicDraw UML 9.0' xmi.extenderID='MagicDraw UML 9.0'> <referentPath xmi.value='::LPlatform Profile'/> </XMI.extension> </UML:Package> </UML:Namespace.ownedElement> As you can guess, I found no means to tell MagicDraw to save the model as described in "This works well". I wonder if that is not a problem in the way androMda parse the xmi file. Did someone faced and solved the problem ? I ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user