[ACCELEO] Null return in using pointer [message #953876] |
Mon, 22 October 2012 11:58  |
Eclipse User |
|
|
|
Hy,
I am using the 3.3.1 Acceleo version on Eclipse Juno, and i want to get the guard of a transition. To do that i have an operation getGuard() on my transition, but she is redefined by a stereotype. When i access to my opération getGuard() by my stereotype, i have always a null return!
static public Algorithm getTransitionGuard(Transition transition)
{
Algorithm result = null;
org.eclipse.papyrus.RobotML.Transition robotml_transition = ElementUtil.getStereotypeApplication(transition, org.eclipse.papyrus.RobotML.Transition.class);
if(robotml_transition != null)
{
result = robotml_transition.getGuard();
}
return result;
}
Can you help me?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09063 seconds