|
Re: How to parameterize a Init Edge Creation Operation [message #1264942 is a reply to message #1263748] |
Wed, 05 March 2014 16:29 |
|
Le 05/03/2014 14:22, Bernard Chabot a écrit :
> Hello,
Hi,
> I followed the "Hello World" Sirius project sample with great interest :
> http://www.eclipse.org/sirius/getstarted.html
>
> But the tutorial do not explain which operation are required to create a
> tool for edge creation ...
>
You fill find some information and sample about EdgeCreationDescription
in the previous topic of the forum [1] [2]
> Is somebody help me to create such a tool ?
> I want to be able to graphically draw the edge "father" between (a man
> or a woman) and a man
You have to:
* create an EdgeCreationDescription,
* set an id (and optionally a label)
* select the fatherEdge mapping (the possible source and target mappings
are referenced in the mapping).
* add a Change Context element to the Init Edge Creation Node
* set its browse expression: var:source (the source semantic element is
the element you want to modify)
* add a Set Value child to the Change Context
* set its feature name: feature:father
* set its value expression: var:target (the second clicked element is
the father)
>
> Best Regard
>
> Bernard
Regards,
Maxime Porhel
[1] http://www.eclipse.org/forums/index.php/t/665874/
[2]
http://www.eclipse.org/forums/index.php/mv/msg/665874/1264927/#msg_1264927
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03214 seconds