Bug 538886 - Selection Wizard does not invoke a service from the 'Elements to Select' property
Summary: Selection Wizard does not invoke a service from the 'Elements to Select' prop...
Status: UNCONFIRMED
Alias: None
Product: Sirius
Classification: Modeling
Component: Properties (show other bugs)
Version: 6.0.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2018-09-10 14:40 EDT by Steve Hickman CLA
Modified: 2019-01-11 09:36 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Hickman CLA 2018-09-10 14:40:02 EDT
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.
Comment 1 Pierre Guilet CLA 2019-01-08 12:05:23 EST
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,
Comment 2 Steve Hickman CLA 2019-01-08 18:40:52 EST
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.
Comment 3 Pierre Guilet CLA 2019-01-11 09:35:58 EST
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.
Comment 4 Pierre Guilet CLA 2019-01-11 09:36:38 EST
when using the aql expression