Skip to main content



      Home
Home » Eclipse Projects » Sirius » Region in a container does not auto-fit to the parent container
Region in a container does not auto-fit to the parent container [message #1727715] Fri, 25 March 2016 12:17 Go to next message
Eclipse UserFriend
Hi All,

In my diagram I have a statemachine in which a State can have multiple regions inside it. The thing is that when I initialize a diagram for the statemachine I can see two problems.

- The inner region(main) is not auto-fit to the parent container.However, when I add the second region (main's sibling), it will fix and both regions will be autofit in the parent container.

- The position of the root statemachine container (SM_F4:StateDiagram) goes to the right-down corner of the diagram. How can I keep it on the left-upper corner.
index.php/fa/25421/0/
BTW, I create the representation from another representation (Navigate to DiagramDescription).

Thanks.
Parsa
  • Attachment: sm.png
    (Size: 40.75KB, Downloaded 756 times)

[Updated on: Fri, 25 March 2016 12:18] by Moderator

Re: Region in a container does not auto-fit to the parent container [message #1728056 is a reply to message #1727715] Wed, 30 March 2016 12:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Le 25/03/2016 17:17, Parsa Pourali a écrit :
> Hi All,
>
> In my diagram I have a statemachine in which a State can have multiple regions inside it. The thing is that when I initialize a diagram for the statemachine I can see two problems.
>
> - The inner region is not auto-fit to the parent container.However, when I add the second region, it will fix and both regions will be autofit in the parent container.
>
> - The position of the root statemachine container goes to the right-down corner of the diagram. How can I keep it on the left-upper corner.
>
> BTW, I create the representation from another representation (Navigate to DiagramDescription).
>
> Thanks.
> Parsa
>

Was it observed "live editing" mode with the diagram already created
before several modifications on the mapping or style ? From free form to
vertical stack, modification of size expression ?

Could you give us more information on the Style of the Container mapping
and the style of the region mapping ? Do you have only one regionmapping
or two ? Which kind of style ? Could you also put some details about the
size expressions ?


Regards
--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Region in a container does not auto-fit to the parent container [message #1728077 is a reply to message #1728056] Wed, 30 March 2016 15:17 Go to previous messageGo to next message
Eclipse UserFriend
Hi Maxime,

Thanks for your reply,

>Was it observed "live editing" mode with the diagram already created
>before several modifications on the mapping or style ? From free form to
>vertical stack, modification of size expression ?

>Could you give us more information on the Style of the Container >mapping
>and the style of the region mapping ? Do you have only one >regionmapping
>or two ? Which kind of style ? Could you also put some details about the
>size expressions ?

This happens when: From my class diagram, I right click on a class and choose "Create State Diagram". Then, I create a state machine object in the model, and a main region inside it and also an initial state for the user to start with. Then I use Navigate tool in Sirius to create and open a new state diagram associated to the object I just created. And the image is what I get !

The outer region : "SM_F4: StateDiagram" is a vertical stack (to show multiple concurrent regions). The size for Height Computation Expression and Width Computation Expression is set to 50 , 30. I changed it to -1 and -1 and it will be autosized. However it will become a very small box (I need 50X30 as the size).

The inner Region "main" is a Free Form container and also with the size of -1 and -1.

So, everything is fine when I myself open the diagram , resize the outer region. It only occurs when I use Navigate to create the diagram.

The other thing is that when this happens, I tried to add the second region (in the outer vertical stack region), it fixed the main region and the main region will also become automatically fit to the parent one.

So, I guess the problem is only with using Navigate.

Thanks a lot,
Regards,
Parsa
Re: Region in a container does not auto-fit to the parent container [message #1730640 is a reply to message #1728077] Wed, 27 April 2016 06:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi Parsa,

Could you try to set the height of the inner region (keep width at -1)
and the width of the stack container (and height -1) ?

If you succeed to reproducde your difference issue between navigate
action and creation of a diagram, could you also create a bugzilla for
that ?


Le 30/03/2016 21:17, Parsa Pourali a écrit :
> Hi Maxime,
>
> Thanks for your reply,
>
>> Was it observed "live editing" mode with the diagram already created
>> before several modifications on the mapping or style ? From free form
>> to vertical stack, modification of size expression ?
>
>> Could you give us more information on the Style of the Container
>> >mapping and the style of the region mapping ? Do you have only one
>> >regionmapping or two ? Which kind of style ? Could you also put some
>> details about the size expressions ?
>
> This happens when: From my class diagram, I right click on a class and
> choose "Create State Diagram". Then, I create a state machine object in
> the model, and a main region inside it and also an initial state for the
> user to start with. Then I use Navigate tool in Sirius to create and
> open a new state diagram associated to the object I just created. And
> the image is what I get !
>
> The outer region : "SM_F4: StateDiagram" is a vertical stack (to show
> multiple concurrent regions). The size for Height Computation Expression
> and Width Computation Expression is set to 50 , 30. I changed it to -1
> and -1 and it will be autosized. However it will become a very small box
> (I need 50X30 as the size).
>
> The inner Region "main" is a Free Form container and also with the size
> of -1 and -1.

>
> So, everything is fine when I myself open the diagram , resize the outer
> region. It only occurs when I use Navigate to create the diagram.
>
> The other thing is that when this happens, I tried to add the second
> region (in the outer vertical stack region), it fixed the main region
> and the main region will also become automatically fit to the parent one.
>
> So, I guess the problem is only with using Navigate.
>
> Thanks a lot,
> Regards,
> Parsa
>

Regards

--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Region in a container does not auto-fit to the parent container [message #1730711 is a reply to message #1730640] Wed, 27 April 2016 17:39 Go to previous message
Eclipse UserFriend
Hi Maxime,

I have tested your solution but it didn't work. I will raise a bug in bugzilla Smile

Thanks,
Best Regards,
Parsa
Previous Topic:Double click
Next Topic:Export/Generate Doc from Documentation Fields in Specification
Goto Forum:
  


Current Time: Mon Mar 17 21:57:09 EDT 2025

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

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

Back to the top