IllegalArgumetnException when applying a stereotyp [message #626070] |
Fri, 22 February 2008 14:10 |
Michael Messages: 43 Registered: July 2009 |
Member |
|
|
Hi everybody!
I have a problem when I want to apply a stereotype to a class. I get an
IllegalArgumentException from the metode applyStereotype in the class
ElementOperation. Here is my java code:
...
(before that, register Resource-Factories and Pathmaps)
Stereotype factoryStereotype =
factoryProfile.createOwnedStereotype("factory", true);
org.eclipse.uml2.uml.Class propertyMetaclass = referenceMetaclass(
factoryProfile, UMLPackage.Literals.CLASS.getName());
Extension extension =
factoryStereotype.createExtension(propertyMetaclass, false);
factoryProfile.define();
...
(loading a uml model)
umlModel.applyProfile(factoryProfile);
creator.applyStereotype(factoryStereotype); //creator = class in the
umlModel
--> here I get the exception! is maybe the refernce of the metaclass wrong?
I hope somebody can help me!
Thanx
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.02644 seconds