|
Re: Model operation for adding reference [message #1403544 is a reply to message #1403536] |
Thu, 24 July 2014 10:32 |
|
Hello,
To display a reference on your diagram you will need an edge mapping
using the mapping you created to represent your model element A and B as
source/target. See Documentation "Sirius Specifier
Manual/Diagrams/Layers and Graphical Elements/Edges" for futher details
on Edge Mappings. You can also check into the tutorial part
https://wiki.eclipse.org/Sirius/Tutorials/4MinTutorial#Add_a_Relation_Based_Edge.
Then, to be able to add a reference from model element A to model
element B, you will need to add an "Edge Creation" tool referencing your
"Edge Mapping". See Documentation "Sirius Specifier
Manual/Diagrams/Layers and Graphical Elements/Edges/Edge Tools" for
futher details on Edge Mappings.
Le 24/07/2014 12:13, Arunkumar Ramaswamy a écrit :
> In the model operation, I did not see any function to add reference to
> the model element.
>
> For example
> model element A have a reference to model element B
>
> I created element A using tool and used the model operation SET to set
> its featuere 'name' accordingly.
> But what operation should i use to add the reference to B.
>
> Any help much appreciated
>
> Arun
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Model operation for adding reference [message #1403548 is a reply to message #1403536] |
Thu, 24 July 2014 10:43 |
|
Hi,
Le 24/07/2014 12:13, Arunkumar Ramaswamy a écrit :
> In the model operation, I did not see any function to add reference to
> the model element.
>
> For example
> model element A have a reference to model element B
>
> I created element A using tool and used the model operation SET to set
> its featuere 'name' accordingly.
> But what operation should i use to add the reference to B.
You can use a Set operation too, in the reference, you just enter the
name of the EReference in your meta-model. Then in the value expession,
you put an expression whose result is B, for example var:target, if you
are in a tool which defined a varable named target which is your B.
>
> Any help much appreciated
>
> Arun
Regards
Maxime
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03586 seconds