Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Applying stereotype on Class
Applying stereotype on Class [message #605424] Wed, 04 April 2007 15:09
Eclipse UserFriend
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
Previous Topic:Ends of association
Next Topic:UML2 Composite Association Bug?
Goto Forum:
  


Current Time: Tue Apr 23 16:41:07 GMT 2024

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

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

Back to the top