|
|
|
|
|
|
|
Re: Can't find the target of the diagram [message #1619419 is a reply to message #1615229] |
Mon, 16 February 2015 10:15  |
Eclipse User |
|
|
|
Hi Emi Su,
Le 13/02/2015 21:07, Emi Su a écrit :
> I have to find the target within the context of 'ContainerA'. I need all the actions which refer to 'ContainerA'.
>
> My ecore model is:
>
>
From the screenshot you attached to a previous post, the structure of
your VSM looks like:
Viewpoint Root
. Diagram description root
. Default layer
. ContainerMapping ContainerA
. ContainerMapping ContainerB
This seems to indicate you want to display some ContainerB elements
(described by the ContainerB mapping) in ContainerA elements (described
by the ContainerA mapping).
I assume the domain class of your diagram description is "Root" and your
Root diagram will be created on a Root.
Your inital question was "I struggled a while with finding the target of
the current diagram (DSemanticDiagram) from Acceleo 3 expression."
It will depend in which interpreted expreted expression your are. For
exemple:
. semantic candidate expression of the ContainerA mapping : this a
root level mapping, the expression context of the evaluation will be the
semantic target of the diagram, ie the "Root" element on which the user
created it.
. semantic candidate expression of the ContainerB mapping: this
expression context of the evaluation will be the semantic target of the
container (created from the ContainerA mapping, see the mapping
structure) for which Sirius tries to refresh children: so I think you
are on a ContainerA element which should be contained by the root (your
screenshot does not show the containment). So in this case
feature:eContainer should be sufficient to retrieve the "Root" element.
We will need more information on the location from which you are looking
for the target to be able to give more help.
Do not hesitate to look into the documentation on mapping[1] and queries [2]
Regards,
--
Maxime - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
--
[1]
https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#layers_graphical_elements
[2]
https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html
|
|
|
Powered by
FUDForum. Page generated in 0.07038 seconds