Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Drag and Drop.
Drag and Drop. [message #1807604] Tue, 04 June 2019 14:14 Go to next message
Bushra Harraq is currently offline Bushra HarraqFriend
Messages: 5
Registered: February 2019
Junior Member
Hi,

I have the following Metamodel:

http://prntscr.com/nxhufm

I want now the following Scenario.


I want to drag a process Segment B, which is a container, in the process Segment A.
The logic would be, that A is now a children of B.

http://prntscr.com/nxia67

Thanks in advance,
Bushra

[Updated on: Tue, 04 June 2019 14:14]

Report message to a moderator

Re: Drag and Drop. [message #1808332 is a reply to message #1807604] Fri, 21 June 2019 15:29 Go to previous message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 250
Registered: June 2017
Senior Member
Hi,

You should define a container drop tool https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#container_tools.
Then in the operation make B a child of A. See https://www.eclipse.org/sirius/doc/specifier/general/Model_Operations.html to understand how it works.
Use a change context with
var:newSemanticContainer
that will be A.
Then a Set operation to make B a child of A with something like
aql:newSemanticContainer .children->insertAt(0,element)
as value expression and children as feature.

Regards,


Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:ELK nodes
Next Topic:How to add listener to button in property view
Goto Forum:
  


Current Time: Wed Oct 23 18:42:59 GMT 2019

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

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

Back to the top