Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 08:14 Go to next message
Nikolay Manolov is currently offline Nikolay ManolovFriend
Messages: 15
Registered: June 2012
Junior Member
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 12:18 Go to previous messageGo to next message
Ignacio Arechaga Fernandez is currently offline Ignacio Arechaga FernandezFriend
Messages: 14
Registered: May 2014
Location: Madrid
Junior Member
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 13:23 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 126
Registered: July 2009
Senior Member
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 14:11 Go to previous messageGo to next message
Ignacio Arechaga Fernandez is currently offline Ignacio Arechaga FernandezFriend
Messages: 14
Registered: May 2014
Location: Madrid
Junior Member
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 14:15]

Report message to a moderator

Re: Container with fixed freeform presentation [message #1384857 is a reply to message #1384852] Mon, 02 June 2014 14:27 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 126
Registered: July 2009
Senior Member
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 08:40 Go to previous messageGo to next message
Ignacio Arechaga Fernandez is currently offline Ignacio Arechaga FernandezFriend
Messages: 14
Registered: May 2014
Location: Madrid
Junior Member
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 09:58 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 126
Registered: July 2009
Senior Member
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 15:11 Go to previous message
Charlie Mordant is currently offline Charlie MordantFriend
Messages: 81
Registered: July 2010
Member

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 Dec 18 00:47:07 GMT 2014

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

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