Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSirus 3.1 - Nodes under the container are not displayed when Horizontal stack is selected
https://www.eclipse.org/forums/index.php/mv/msg/1072860/1716992/#msg_1716992
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.]]>Harikarthik PC2015-12-09T13:52:47-00:00Re: Sirus 3.1 - Nodes under the container are not displayed when Horizontal stack is selected
https://www.eclipse.org/forums/index.php/mv/msg/1072860/1717106/#msg_1717106
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.