Skip to main content



      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 07:11 Go to next message
Eclipse UserFriend
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 391 times)
  • Attachment: lamp-figure.png
    (Size: 40.10KB, Downloaded 287 times)
Re: Show an edge inside a free form container [message #1794427 is a reply to message #1794406] Thu, 30 August 2018 09:50 Go to previous messageGo to next message
Eclipse UserFriend
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,
Re: Show an edge inside a free form container [message #1794429 is a reply to message #1794427] Thu, 30 August 2018 09:59 Go to previous messageGo to next message
Eclipse UserFriend
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 11:09 Go to previous message
Eclipse UserFriend
See https://www.eclipse.org/forums/index.php/t/1094918/

[Updated on: Mon, 03 September 2018 11:44] by Moderator

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


Current Time: Wed Jul 23 16:35:11 EDT 2025

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

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

Back to the top