[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2tools] Re: get stereotypes applied to an element

Hi Kenn,

Indeed, the query for applicable stereotypes returns nothing and there is only one resource (my model) in the resourceSet. I tried to put my model and my profile in the same file but I have always only my model in the resource set. I also tried to add my profile in the resourceSet but how specifie it is the profile applied?

Hereunder my uml file : the applied profiles are specified, there is only one class with the stereotype "SwMutualExclusionResource"

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SW_Interaction="http://MARTE.MARTE_DesignModel.SRM/schemas/SW_Interaction/_wjMt8EOMEd6caK5ICj_pSQ/12"; xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"; xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML"; xsi:schemaLocation="http://MARTE.MARTE_DesignModel.SRM/schemas/SW_Interaction/_wjMt8EOMEd6caK5ICj_pSQ/12 resources/MARTE.profile.uml#_wjeawEOMEd6caK5ICj_pSQ">
<uml:Model xmi:id="_SQGZYHEfEd6HEvR-xSS_ng" name="essai2">
<packageImport xmi:id="_SQGZYXEfEd6HEvR-xSS_ng">
<importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
</packageImport>
<packagedElement xmi:type="uml:Class" xmi:id="_dNWxIHEfEd6HEvR-xSS_ng" name="Class_0"/>
<profileApplication xmi:id="_SQGZYnEfEd6HEvR-xSS_ng">
<eAnnotations xmi:id="_SQGZY3EfEd6HEvR-xSS_ng" source="http://www.eclipse.org/uml2/2.0.0/UML";>
<references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/schemas/Standard/1#/"/>
</eAnnotations>
<appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
</profileApplication>
<profileApplication xmi:id="_YjBwAXEfEd6HEvR-xSS_ng">
<eAnnotations xmi:id="_YjLhAHEfEd6HEvR-xSS_ng" source="http://www.eclipse.org/uml2/2.0.0/UML";>
<references xmi:type="ecore:EPackage" href="resources/MARTE.profile.uml#_wjeawEOMEd6caK5ICj_pSQ"/>
</eAnnotations>
<appliedProfile href="resources/MARTE.profile.uml#_EIfnABJeEdy3Td9UhuLFPg"/>
</profileApplication>
</uml:Model>
<SW_Interaction:SwMutualExclusionResource xmi:id="_1XpK4HEfEd6HEvR-xSS_ng" base_Classifier="_dNWxIHEfEd6HEvR-xSS_ng"/>
</xmi:XMI>


Thank you for your help

Aurelie