Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Figure size controls
Figure size controls [message #1385960] Thu, 12 June 2014 13:28 Go to next message
Ignacio Arechaga Fernandez is currently offline Ignacio Arechaga Fernandez
Messages: 14
Registered: May 2014
Location: Madrid
Junior Member
Hi all,

I am trying to reach some complex representation but I am having trouble with sizes...

This is what I have :
index.php/fa/18263/0/

The red square is a container which has the childrenRepresentation set as a "HorizontalStack"

The blue squares are containers with VerticalStack representations.

The problem is that I am want something like this figure :

index.php/fa/18264/0/

So I am setting the sizes of some elements in the properties view to an smaller size.

The problem is that I cannot make them smaller, but I can make them bigger. How is that possible? Are there some constraints that I don't know about? If so... can I adapt something in order to be able to do so?

I also need to set a maximum size for the red container, because it will be inside a bigger container of red containers

[Updated on: Thu, 12 June 2014 13:29]

Report message to a moderator

Re: Figure size controls [message #1385969 is a reply to message #1385960] Thu, 12 June 2014 14:04 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent Redor
Messages: 38
Registered: July 2009
Member
Hi,

If you make reference to "experimental compartment" presented by Maxime
in this thread "Container with fixed freeform presentation" [1], this is
not officially supported yet.

Maybe Maxime will have an idea about the existence of some constraints
but it is currently on vacation.

Regards,

Laurent

[1]
http://www.eclipse.org/forums/index.php/mv/msg/781418/1384840/#msg_1384840

Le 12/06/2014 15:28, Ignacio Arechaga Fernandez a écrit :
> Hi all,
>
> I am trying to reach some complex representation but I am having trouble with sizes...
>
> This is what I have :
>
>
> The red square is a container which has the childrenRepresentation set as a "HorizontalStack"
>
> The blue squares are containers with VerticalStack representations.
>
> The problem is that I am want something like this figure :
>
>
>
> So I am setting the sizes of some elements in the properties view to an smaller size.
>
> The problem is that I cannot make them smaller, but I can make them bigger. How is that possible? Are there some constraints that I don't know about? If so... can I adapt something in order to be able to do so?
>
Re: Figure size controls [message #1386120 is a reply to message #1385969] Fri, 13 June 2014 13:22 Go to previous message
Maxime Porhel is currently offline Maxime Porhel
Messages: 85
Registered: July 2009
Member
Hi Ignacio

Le 12/06/2014 16:04, Laurent Redor a écrit :
> Hi,
>
> If you make reference to "experimental compartment" presented by Maxime
> in this thread "Container with fixed freeform presentation" [1], this is
> not officially supported yet.
>
> Maybe Maxime will have an idea about the existence of some constraints
> but it is currently on vacation.
>
> Regards,
>
> Laurent
>
> [1]
> http://www.eclipse.org/forums/index.php/mv/msg/781418/1384840/#msg_1384840
>
> Le 12/06/2014 15:28, Ignacio Arechaga Fernandez a écrit :
>> Hi all,
>>
>> I am trying to reach some complex representation but I am having
>> trouble with sizes...
>>
>> This is what I have :
>>
>>
>> The red square is a container which has the childrenRepresentation set
>> as a "HorizontalStack"
>>
>> The blue squares are containers with VerticalStack representations.

The compartment experimental feature is not currently designed to handle
this kind of construction. It is currently able to handle one level of
compartment, Sirius will assume in several places that a container is a
simple container, a simple list, a region container or a region but
never at the same time a region and a region container. So a region must
be a List or a Container, ie: it must have a FreeForm or List children
presentation. Then a compartment can contain a container with regions.


>>
>> The problem is that I am want something like this figure :
>>
>>
>>
>> So I am setting the sizes of some elements in the properties view to
>> an smaller size.
>>
>> The problem is that I cannot make them smaller, but I can make them
>> bigger. How is that possible? Are there some constraints that I don't
>> know about?

The compartments currently takes all the available space of their
container: when you resize a container, it impacts the compartments and
the resize of a compartment currently impacts the sibling regions and/or
the container.


>> If so... can I adapt something in order to be able to do so?

I think you might have to provide you own part/policy or layout to
obtain what you want.



Regards
Previous Topic:Sirius for serialized ecore model
Next Topic:Unable to set viewpoint to existing project
Goto Forum:
  


Current Time: Fri Sep 19 03:57:36 GMT 2014

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

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