Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Sirus 3.1 - Nodes under the container are not displayed when Horizontal stack is selected(Sirius - Node Layering)
Sirus 3.1 - Nodes under the container are not displayed when Horizontal stack is selected [message #1716992] Wed, 09 December 2015 13:52 Go to next message
Harikarthik PC is currently offline Harikarthik PCFriend
Messages: 3
Registered: December 2015
Junior Member
I am Beginner for Sirius. With the help of Sirius Diagram Description, I need to create container( 1, 2 , 3) and nodes under the container(A, B, C , D etc) as in the attached image.

With respect to the root, I need the container(1,2,3) elements to be aligned vertically ordered( same position as indicated) and the node elements(A B C ) under the container should be arranged in the same way as indicated in the picture.

I created a container for Layer (1,2, 3) and selected Horizontal stack for Children Presentation[/b] . Then I added a SubNode under the container for sub elements (A, B, C) under the the layer. Though they are the children , the nodes created are not getting displayed when Horizontal Stack for Children Presentation is selected.

If we select Free Form for Children Presentation, the nodes are getting displayed.

Could some one suggest me
1. how could i arrange the elements under the layers as depicted in the picture
2. Also how to arrange layers in order such that layers are should not be arranged in random order.

Thank you.
Re: Sirus 3.1 - Nodes under the container are not displayed when Horizontal stack is selected [message #1717106 is a reply to message #1716992] Wed, 09 December 2015 22:27 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 500
Registered: July 2009
Location: Nantes, France
Senior Member
Hi,

If a ContainerMapping children presentation is set to FreeFrom, it will
display sub nodes and sub containers/lists.

If you set the children presentation to List, only the sub nodes
mappings will be evaluated to compute the list elements.

If you set the children presentation to HorizontalStack of
VerticalStack, only the sub container mapping will be evaluated, the
created sub list or containers will be arranged as compartiments in the
selected direction.

See the documentation about containers and children presentation in [1]


Le 09/12/2015 16:15, Harikarthik PC a écrit :
> I am Beginner for Sirius. With the help of Sirius Diagram Description, I need to create container( 1, 2 , 3) and nodes under the container(A, B, C , D etc) as in the attached image.
>

To do this you should create a root ContainerMapping with children
presentation set to VerticalStack and then one or several sub
ContainerMapping (dynamic or fixed) with children presentation set to
FreeForm

> With respect to the root, I need the container(1,2,3) elements to be aligned vertically ordered( same position as indicated) and the node elements(A B C ) under the container should be arranged in the same way as indicated in the picture.
>
> I created a container for Layer (1,2, 3) and selected Horizontal stack for Children Presentation[/b] . Then I added a SubNode under the container for sub elements (A, B, C) under the the layer. Though they are the children , the nodes created are not getting displayed when Horizontal Stack for Children Presentation is selected.
>
> If we select Free Form for Children Presentation, the nodes are getting displayed.

See the beginning of this message and do not hesitate to validate the
VSM (the odesign file: Viewpoint Specification Model), the validate menu
on any VSM element will trigger the validation of the sub tree.

In your case, the validation should throw errors indicating that there
should not be any NodeMapping in a H/V stack container.
>
> Could some one suggest me
> 1. how could i arrange the elements under the layers as depicted in the picture

I answered a few line ahead for the 1/2/3 containers.
For the horizontal layout of sub nodes, I think this should be the
default arrange all behavior for non pinned elements. If you want to
force this layout, I think you might have to provide your own layout
extension through the GMF extension point (arrange all) or you might try
other means (like precommit listener) to always for the positions.


> 2. Also how to arrange layers in order such that layers are should not be arranged in random order.

The order of the 1/2/3 compartments will be computed from the mapping
order and then the semantic candidates order.

>
> Thank you.
>

Regards

--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
--
[1]
https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#containers


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Left-alignment of labels of sequence diagram messages
Next Topic:Programmatically layout a diagram
Goto Forum:
  


Current Time: Thu Jan 21 12:47:47 GMT 2021

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

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

Back to the top