Retour / Return

This forum is now read-only. If you have any questions about Acceleo, please refer now to:

For the French Acceleo community, a forum is available on the Obeo Network

Problems / Bugs :  Acceleo Forum
Bugs reports 
Goto Thread: PreviousNext
Goto:  Forum ListMessage ListSearch
null return in using stereotype.
Posted by: nbrodnan (IP Logged)
Date: October 19, 2012 04:43PM


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?

Re: null return in using stereotype.
Posted by: nbrodnan (IP Logged)
Date: November 16, 2012 08:31PM

By the test project, I realized that everything worked. I redid my state machine of my project, and that to solve the problem. The problem comes from a change in our profile.

This forum is read only now. You can post your acceleo questions on Eclipse Acceleo forum :
Webdesign : - Realisation : Obeo