[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Retrieving a stereotype'S property with a static profile

Hey all,

what is the common way to retrieve a property value of a stereotype from a staric profile?

I assumed, because of the additional code generation step, it had to be something like this:

Weight w = (Weight)element.getAppliedStereotype(Misc::Weight);
w.getWeight();

But that causes a ClassCastException. I searched in the newsgroup, but i didn't found the solution yet.

Regards Timothy