Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » apply stereotype problem with static profile
apply stereotype problem with static profile [message #626598] Wed, 21 May 2008 07:45
Andreas Werner is currently offline Andreas WernerFriend
Messages: 55
Registered: July 2009
Member
Hi,

yesterday I've played with the new static profile definition feature. Thus
I followed the instructions given in the tutorial document mentioned here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480

The problem was that I couldn't apply the defined stereotype in the last
step of the tutorial - so no tada :(!
To be more precise, the stereotype can be chosen in the apply action, but
after pressing the OK button, the editor doesn't reflect the application.

Here is what the uml file looks like after the application:
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
<uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
<packagedElement xmi:type="uml:Class" xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
name="C1"/>
<profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
<eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://myOrg/MyStaticProfile/1#/"/>
</eAnnotations>
<appliedProfile href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
</profileApplication>
</uml:Model>
<myStaticProfile:MyVerySpecialClass xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
</xmi:XMI>

Has anybody also problems with this?

Kind regards, Andreas
Previous Topic:Copy Element With Applied Stereotypes
Next Topic:Import and traverse UML2
Goto Forum:
  


Current Time: Fri Apr 19 01:02:46 GMT 2024

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

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

Back to the top