Applying stereotype on Class [message #605424] |
Wed, 04 April 2007 15:09 |
Eclipse User |
|
|
|
Originally posted by: guillaume.clement.gmail.com
Hi,
I have a model on which I apply a profile.
model.applyProfile(profileDocumentation);
The profileDocumentation isn't null ;-) It cames from an other model.
I get stereotype as I want.
Stereotype stereotype = profileDocumentation.getOwnedStereotype("CU");
Then I create a Class on which I want to apply the stereotype.
org.eclipse.uml2.uml.Class class_ = package_.createOwnedClass(name,
isAbstract);
class_.applyStereotype(stereotype);
But when I look in the UML editor the stereotype isn't applied to my class.
If I select the class and use the menu Element to add a stereotype it
works fine.
Any idea ??
Thx
Guillaume
|
|
|
Powered by
FUDForum. Page generated in 0.02688 seconds