applyStereotype on input model elements [message #908348] |
Wed, 05 September 2012 07:58 |
Martin Bauer Messages: 1 Registered: September 2012 |
Junior Member |
|
|
I use the eclipse QVTo and transform an uml model into an other uml model. The input model is also the output model (transformation t(inout umlin : UML) ...).
Question:
I can apply a stereotype on an element which i create before but i can not apply a stereotype on an element which is from the input model. That means an element that is not created during the transformations.
this works:
var c : Class:= object Class{name:="class"};
model.getClassDiagram().packagedElement+=c;
c.applyStereotype(c.getApplicableStereotype("myStereotype"));
but this not:
var c : Class:= model.getClass("myClass");
c.applyStereotype(c.getApplicableStereotype("myStereotype"));
the test c.getAppliedStereotype("myStereotype") <> null; is in both cases true but in the second case the output model file does not apply the stereotype on the element.
[Updated on: Wed, 05 September 2012 09:25] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03958 seconds