Skip to main content



      Home
Home » Eclipse Projects » Sirius » Container with fixed freeform presentation(or list presentation where children can be containers)
Container with fixed freeform presentation [message #1384803] Mon, 02 June 2014 04:14 Go to next message
Eclipse UserFriend
I need to have something like a Container with a list representation where the elements can themselves be containers or "normal" nodes, and not just text. They should be resized with the top container. How would one do that?

Example see attached image
index.php/fa/18182/0/
Re: Container with fixed freeform presentation [message #1384832 is a reply to message #1384803] Mon, 02 June 2014 08:18 Go to previous messageGo to next message
Eclipse UserFriend
Perhaps you can use a container mapping, I managed to have a sub-component representation, but what I can't manage yet is to present them in a desired position, they are always "somewhere" inside the container
Re: Container with fixed freeform presentation [message #1384840 is a reply to message #1384803] Mon, 02 June 2014 09:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Le 02/06/2014 10:14, Nikolay Manolov a écrit :
> I need to have something like a Container with a list representation where the elements can themselves be containers or "normal" nodes, and not just text. They should be resized with the top container. How would one do that?
>
> Example see attached image
>

This compartment/region behavior is not yet supported in Sirius. This
corresponds to the enhancement bug 436359 [1]. Some experimental work
has already been done and is present in Sirius 1.0.0. But it requires a
manual modification of the VSM (the odesign file) in a text editor.

A current possibility could be to create a Top container mapping
(children presentation = FreeForm) with sub container mapping (children
= FreeForm regarding your sketch). By default they will be standard
container, children of the main container, the user can move, resize and
layout them as he wants.

Then to activate the experimental compartments capability, open your
odesign in a text editor and replace childrenPresentation="FreeForm" by
childrenPresentation="VerticalStack" for your top container mapping.
This will activate the Region/RegionContainer user interactions and
layout on your Top/Fixed containers.

Regards,

Maxime

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=436359
Re: Container with fixed freeform presentation [message #1384852 is a reply to message #1384840] Mon, 02 June 2014 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Maxime Porhel wrote on Mon, 02 June 2014 15:23
Hi,

Le 02/06/2014 10:14, Nikolay Manolov a écrit :
> I need to have something like a Container with a list representation where the elements can themselves be containers or "normal" nodes, and not just text. They should be resized with the top container. How would one do that?
>
> Example see attached image
>

This compartment/region behavior is not yet supported in Sirius. This
corresponds to the enhancement bug 436359 [1]. Some experimental work
has already been done and is present in Sirius 1.0.0. But it requires a
manual modification of the VSM (the odesign file) in a text editor.

A current possibility could be to create a Top container mapping
(children presentation = FreeForm) with sub container mapping (children
= FreeForm regarding your sketch). By default they will be standard
container, children of the main container, the user can move, resize and
layout them as he wants.

Then to activate the experimental compartments capability, open your
odesign in a text editor and replace childrenPresentation="FreeForm" by
childrenPresentation="VerticalStack" for your top container mapping.
This will activate the Region/RegionContainer user interactions and
layout on your Top/Fixed containers.

Regards,

Maxime

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=436359


Hi Maxime, this is also something I am looking for. Are there any other possibilities (experimental of course) than VerticalStack? Let's say.... HorizontalStack?

[Updated on: Mon, 02 June 2014 10:15] by Moderator

Re: Container with fixed freeform presentation [message #1384857 is a reply to message #1384852] Mon, 02 June 2014 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Le 02/06/2014 16:11, Ignacio Arechaga Fernandez a écrit :
> Maxime Porhel wrote on Mon, 02 June 2014 15:23
>> Hi,
>>
>> Le 02/06/2014 10:14, Nikolay Manolov a écrit :
>> > I need to have something like a Container with a list representation
>> where the elements can themselves be containers or "normal" nodes, and
>> not just text. They should be resized with the top container. How
>> would one do that?
>> >
>> > Example see attached image
>> >
>>
>> This compartment/region behavior is not yet supported in Sirius. This
>> corresponds to the enhancement bug 436359 [1]. Some experimental work
>> has already been done and is present in Sirius 1.0.0. But it requires
>> a manual modification of the VSM (the odesign file) in a text editor.
>>
>> A current possibility could be to create a Top container mapping
>> (children presentation = FreeForm) with sub container mapping
>> (children = FreeForm regarding your sketch). By default they will be
>> standard container, children of the main container, the user can move,
>> resize and layout them as he wants.
>>
>> Then to activate the experimental compartments capability, open your
>> odesign in a text editor and replace childrenPresentation="FreeForm"
>> by childrenPresentation="VerticalStack" for your top container
>> mapping. This will activate the Region/RegionContainer user
>> interactions and layout on your Top/Fixed containers.
>>
>> Regards,
>>
>> Maxime
>>
>> [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=436359
>
>
> Hi Maxime, this is also something I am looking for. Are there any other
> possibilities (experimental of course) than VerticalStack? Let's say....
> HorizontalStack?
>

Yes, HorizontalStack is the other possibility as indicated in my comment
on Bug 436359 [1]

You can even have a stack of regions with both List and FreeForm
regions. The regions are ordered by mapping and then by semantic
candidates order.


Regards

Maxime
Re: Container with fixed freeform presentation [message #1384936 is a reply to message #1384857] Tue, 03 June 2014 04:40 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for you reply Maxime.

Do we have the possibility to show any item with 90º rotation?
Re: Container with fixed freeform presentation [message #1384958 is a reply to message #1384936] Tue, 03 June 2014 05:58 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Sirius does not provide this possibility. You could try to provide some
specific editpart/style/figure but you might encounter some issues to
make it work on all platforms.

Regards,

Maxime

Le 03/06/2014 10:40, Ignacio Arechaga Fernandez a écrit :
> Thanks for you reply Maxime.
>
> Do we have the possibility to show any item with 90º rotation?
Re: Container with fixed freeform presentation [message #1385463 is a reply to message #1384958] Fri, 06 June 2014 11:11 Go to previous message
Eclipse UserFriend
Hi,

I began this kind of work but stopped on the way.

Here are the steps to reach your Objective:


  • Implementing a gmf edit part provider extension point for your container and contained node
  • Get the map of newly-to-synchronize gmf views in the ViewpointLayoutDataManager and remove them to disable Sirius automatic layouting at creation
  • Implement your own Gef LayoutManager for your node


Good luck for that job, that's not so easy to do.

Regards, Charlie
Previous Topic:Stuck on creating a representation
Next Topic:merging uml2.odesign to another .odesign
Goto Forum:
  


Current Time: Thu Jul 03 19:24:53 EDT 2025

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

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

Back to the top