|Re: Navigate in the opposite sense from semantic element to the view [message #1794477 is a reply to message #1794443]
||Fri, 31 August 2018 07:06
|| Maxime Porhel
Registered: July 2009
Location: Nantes, France
In the precondition of a ContainerMapping, you should have access to container and containerView variables.
Note that for performance reason, we would recommend to do this test directly in the semantic candidates expression of the mapping (for example, with a ->select(..) if you use AQL, see ). In the case of the evaluation of the semantic candidate expression : self will correspond to your container and you will have access to containerView if you need to check things on its view.
Please also note that you can see which variables are available with the auto completion. For exemple, type var: in a expression field (yellow) and then hit ctrl+space, and a completion popup will show you the variables. (With aql: they should be at the bottom of the proposals list)
Maxime Porhel - Obeo
Need training or professional services for Sirius?
Join the Sirius community at SiriusCon. Register for free: Nov. 9th Paris
Powered by FUDForum
. Page generated in 0.02921 seconds