|[ACCELEO] Null return in using pointer [message #953876]
||Mon, 22 October 2012 15:58
| Nicolas BRODNAN
Registered: October 2012
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();
Can you help me?
Powered by FUDForum
. Page generated in 0.02038 seconds