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 11: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
Previous Topic:Ends of association
Next Topic:UML2 Composite Association Bug?
Goto Forum:
  


Current Time: Fri Aug 29 12:22:55 EDT 2014

Powered by FUDForum. Page generated in 0.02039 seconds