Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to parameterize a Init Edge Creation Operation
How to parameterize a Init Edge Creation Operation [message #1263748] Tue, 04 March 2014 18:53 Go to next message
Bernard Chabot is currently offline Bernard ChabotFriend
Messages: 3
Registered: March 2014
Junior Member
Hello,

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 ...

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

Best Regard

Bernard
Re: How to parameterize a Init Edge Creation Operation [message #1264942 is a reply to message #1263748] Wed, 05 March 2014 16:29 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
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
Re: How to parameterize a Init Edge Creation Operation [message #1265057 is a reply to message #1264942] Wed, 05 March 2014 18:10 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi,

On the tutorial page [1], you will also find the resulting modeler which
contains several mappings and tools samples.

If you click on 'Download the resources used by this video', the
differents resources used in the video can be donwloaded:
* the Family DSL [2]
* a sample model [3]
* the resulting modeler [4]

Regards,

Maxime

[1] http://www.eclipse.org/sirius/getstarted.html
[2] http://www.eclipse.org/sirius/doc/resources/getstarted/basicfamily.zip
[3] http://www.eclipse.org/forums/index.php/fa/17018/
[4]
http://www.eclipse.org/sirius/doc/resources/getstarted/basicfamily.design.zip


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to parameterize a Init Edge Creation Operation [message #1265189 is a reply to message #1265057] Wed, 05 March 2014 20:01 Go to previous message
Bernard Chabot is currently offline Bernard ChabotFriend
Messages: 3
Registered: March 2014
Junior Member
Thanks you very much Maxime for you quick and efficient answer.

[4]
http://www.eclipse.org/sirius/doc/resources/getstarted/basicfamily.design.zip
=> This link with the resources of the final result is very useful

Bernard
Previous Topic:Example on Creating a tool: Edge Creation Description
Next Topic:How to save instances ?
Goto Forum:
  


Current Time: Tue Apr 16 23:10:24 GMT 2024

Powered by FUDForum. Page generated in 1.18055 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top