Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Show an edge inside a free form container
Show an edge inside a free form container [message #1794406] Thu, 30 August 2018 11:11 Go to next message
Fa Za is currently offline Fa ZaFriend
Messages: 245
Registered: March 2010
Senior Member
Hi all,

As shown in the following figure, I try to create a designer to represent such a diagram.

index.php/fa/33782/0/

So I have a black container. Its children are represented as a horizontal stack (yellow sub-container and red sub-container).
The children representation of the red sub-container is Free Form. And inside it, I need to create some green sub-container connected using blue edges.
The issue is, as shown in the following screenshot, that I didn't success to create Element Based Edge or Relation Based Edge inside the red sub-container.

index.php/fa/33783/0/

The contextual menu doesn't provide the capability to create such a diagram element.

Is it a Sirius limitation?
Otherwise, how can I create an edge inside a sub-container?

best,

FaZa

  • Attachment: lamp.png
    (Size: 12.51KB, Downloaded 104 times)
  • Attachment: lamp-figure.png
    (Size: 40.10KB, Downloaded 69 times)
Re: Show an edge inside a free form container [message #1794427 is a reply to message #1794406] Thu, 30 August 2018 13:50 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 443
Registered: July 2009
Location: Nantes, France
Senior Member
Hi FaZa,

You can simply create the wanted edges, you do not encounter a limitation, it is just the fact that edges are defined as children of a Layer,.
Then their source/target mappings will control where they will be drawn. So if you want to create edge in the red subcontainer, you need to create hte edge mappings as children of the parent layer and then use the green container as source and target mappings.


Regards,


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius

Join the Sirius community at SiriusCon. Register for free: Nov. 9th Paris
http://www.siriuscon.org/
Re: Show an edge inside a free form container [message #1794429 is a reply to message #1794427] Thu, 30 August 2018 13:59 Go to previous messageGo to next message
Fa Za is currently offline Fa ZaFriend
Messages: 245
Registered: March 2010
Senior Member
Yes Maxime!
I resolved the issue in this way. All edges must be declared in the layer.
Please a second question
From a containerView to a semantic element, I navigate using this expression
containerView.oclAsType(viewpoint::DSemanticDecorator).target.oclAsType(....)
However, how can navigate in the opposite sense, i.e., from the semantic element to the view?
thanks
Re: Show an edge inside a free form container [message #1794601 is a reply to message #1794429] Mon, 03 September 2018 15:09 Go to previous message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 176
Registered: June 2017
Senior Member
See https://www.eclipse.org/forums/index.php/t/1094918/



Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius

[Updated on: Mon, 03 September 2018 15:44]

Report message to a moderator

Previous Topic:[Sirius] Need to reopen the diagram after layout
Next Topic:[ANN] Sirius 6.0.1
Goto Forum:
  


Current Time: Mon Nov 19 21:41:09 GMT 2018

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

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

Back to the top