Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » stereotype application to an Operation
stereotype application to an Operation [message #625864] Wed, 09 January 2008 20:37
Krzysztof Kaczmarski is currently offline Krzysztof KaczmarskiFriend
Messages: 88
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------070808070906060701080807
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit

Hi All,

Using UML Editor I tried to apply a previously created stereotype to
an Operation. No success, editor's dialog does not show available
stereotype. (The profile is perfectly applied to the containing
package and the profile refers to proper metamodel elements.)
It is strange because the same profile contains a stereotype for a
Class and there are no problems with that. It can be easily applied
using the same UML Editor->Element->Apply Stereotype dialog.
Why exactly the same procedure cannot be done for Operation elements?

I attach the two files. They must be placed in the same folder.

Thanks for any ideas and help.
Krzysztof

--------------070808070906060701080807
Content-Type: text/xml;
name="myprofile.uml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="myprofile.uml"

<?xml version="1.0" encoding="UTF-8"?>
<uml:Profile xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" xmi:id="_ds-E8DptEdypaJ8o92fLRg" name="vide" metaclassReference="_lcbrADptEdypaJ8o92fLRg _Tr0YIDt1Edy5S6xA5gKTag" metamodelReference="_jsO4sDptEdypaJ8o92fLRg">
<eAnnotations xmi:id="_qieXwTptEdypaJ8o92fLRg" source="http://www.eclipse.org/uml2/2.0.0/UML">
<contents xmi:type="ecore:EPackage" xmi:id="_qieXwjptEdypaJ8o92fLRg" name="vide" nsURI="http:///schemas/vide/_qieXwDptEdypaJ8o92fLRg/0" nsPrefix="vide">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_qieXwzptEdypaJ8o92fLRg" name="module">
<eAnnotations xmi:id="_qieXxDptEdypaJ8o92fLRg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_f9EfUDptEdypaJ8o92fLRg"/>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_qieXxTptEdypaJ8o92fLRg" name="base_Class" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/2.1.0/UML#//Class"/>
</eStructuralFeatures>
</eClassifiers>
</contents>
</eAnnotations>
<elementImport xmi:id="_lcbrADptEdypaJ8o92fLRg">
<importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</elementImport>
<elementImport xmi:id="_Tr0YIDt1Edy5S6xA5gKTag">
<importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
</elementImport>
<packageImport xmi:id="_jsO4sDptEdypaJ8o92fLRg">
<importedPackage xmi:type="uml:Model" href="pathmap://UML_METAMODELS/UML.metamodel.uml#_0"/>
</packageImport>
<packagedElement xmi:type="uml:Stereotype" xmi:id="_f9EfUDptEdypaJ8o92fLRg" name="module">
<ownedAttribute xmi:id="_odtDojptEdypaJ8o92fLRg" name="base_Class" association="_odtDoDptEdypaJ8o92fLRg">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Extension" xmi:id="_odtDoDptEdypaJ8o92fLRg" name="Class_module" memberEnd="_odtDoTptEdypaJ8o92fLRg _odtDojptEdypaJ8o92fLRg">
<ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_odtDoTptEdypaJ8o92fLRg" name="extension_module" type="_f9EfUDptEdypaJ8o92fLRg" aggregation="composite" association="_odtDoDptEdypaJ8o92fLRg"/>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype" xmi:id="_ZpGmADthEdy5S6xA5gKTag" name="PublishedService">
<ownedAttribute xmi:id="_lZaoYLhSEdyq4tBypNNyyA" name="base_Class" association="_lWCuQDthEdy5S6xA5gKTag">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype" xmi:id="_hj5SUDthEdy5S6xA5gKTag" name="ConsumedService">
<ownedAttribute xmi:id="_nhNlUjthEdy5S6xA5gKTag" name="base_Class" association="_nhNlUDthEdy5S6xA5gKTag">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Extension" xmi:id="_lWCuQDthEdy5S6xA5gKTag" name="Operation_PublishedService" memberEnd="_lWCuQTthEdy5S6xA5gKTag _lZaoYLhSEdyq4tBypNNyyA">
<ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_lWCuQTthEdy5S6xA5gKTag" name="extension_PublishedService" type="_ZpGmADthEdy5S6xA5gKTag" aggregation="composite" association="_lWCuQDthEdy5S6xA5gKTag"/>
</packagedElement>
<packagedElement xmi:type="uml:Extension" xmi:id="_nhNlUDthEdy5S6xA5gKTag" name="Operation_ConsumedService" memberEnd="_nhNlUTthEdy5S6xA5gKTag _nhNlUjthEdy5S6xA5gKTag">
<ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_nhNlUTthEdy5S6xA5gKTag" name="extension_ConsumedService" type="_hj5SUDthEdy5S6xA5gKTag" aggregation="composite" association="_nhNlUDthEdy5S6xA5gKTag"/>
</packagedElement>
</uml:Profile>

--------------070808070906060701080807
Content-Type: text/xml;
name="stereotype-test.uml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="stereotype-test.uml"

<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" xmi:id="_ndpQYL7pEdyky-XriEY2AQ" name="MyModel">
<ownedComment xmi:id="_gY4FwL7sEdy0KdxkYGh9DQ">
<body> platform:/plugin/org.eclipse.uml2.uml.resources/metamodels/U ML.metamodel.uml </body>
</ownedComment>
<packagedElement xmi:type="uml:Package" xmi:id="_3BmtgL7pEdyky-XriEY2AQ" name="MyPackage">
<packagedElement xmi:type="uml:Class" xmi:id="_CyMmsL7qEdy0KdxkYGh9DQ" name="MyClass">
<ownedOperation xmi:id="_EfsDQL7qEdy0KdxkYGh9DQ" name="MyOpperation"/>
</packagedElement>
<profileApplication xmi:id="_HklI4L7wEdyJObaN-iitzA">
<eAnnotations xmi:id="_HkoMML7wEdyJObaN-iitzA" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="myprofile.uml#_qieXwjptEdypaJ8o92fLRg"/>
</eAnnotations>
<appliedProfile href="myprofile.uml#_ds-E8DptEdypaJ8o92fLRg"/>
</profileApplication>
</packagedElement>
</uml:Model>

--------------070808070906060701080807--
Previous Topic:[Announce] MDT UML2 2.2.0 I200801091300 is available
Next Topic:stereotype application to an Operation
Goto Forum:
  


Current Time: Fri Aug 12 21:44:25 GMT 2022

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

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

Back to the top