|
|
|
|
|
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 |
|
Hi,
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 [1]). 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)
Regards,
[1] https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 1.85515 seconds