Community
Participate
Working Groups
Per the thread: https://www.eclipse.org/forums/index.php/m/1794900/#msg_1794900 I've tried multiple different ways to get Sirius to call a function from the 'Elements to Select' property of the Selection Wizard. I've tried service:, aql: with functions. Nothing works. Service methods are invoked from the 'Candidates Expression' property so I know the Service class is properly registered. I'm using GEMOC Studio with Sirius and XText updated to 6.0.1 / 2.14 respectively. My service class is in Java (not XTend). I've run in the debugger and put println() in the methods. The debugger doesn't stop in any of the methods nor do the println()s show up in the console.
HI, Is your service class containing the method registered in the odesign? If so I don't know why this method does not trigger. Can you provide us your metamodel and odesign project to check it or a small version with a design with ecore where you can reproduce the problem? Regards,
The service is registered in the odesign. I have 8 servioe classes registered. Most of them are XTend classes. One is a Java class. The underlying meta-model is XText based and fairly large. Before I attempt to pare it down, can you tell me where to set a breakpoint to capture what Sirius is attempting to do when it processes a Selection Wizard? More specifically, where does it attempt to bind to the method specified in 'Elements to Select' field? If I can run this in the debugger, I may be able to tell what it is looking for and why what I've given it doesn't work.
The entry point of the evaluation are org.eclipse.sirius.common.acceleo.aql.business.internal.AQLSiriusInterpreter.evaluateExpression(EObject, String) org.eclipse.sirius.common.acceleo.aql.business.internal.AQLSiriusInterpreter.evaluate(EObject, String) You will be able to see the problem in here.
when using the aql expression