Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Layout of MParts that are referenced by MPlaceholders(Using fx_layout_grab_* with placeholders is a bit tricky)
Layout of MParts that are referenced by MPlaceholders [message #1391928] Tue, 01 July 2014 16:01 Go to next message
Uwe San is currently offline Uwe SanFriend
Messages: 119
Registered: January 2012
Senior Member
Hi,

my application model contains placeholders that reference parts like this:

+ MPartSashContainer (horizontal = true)
   + MPlaceholder
     -> MPart (fx_layout_grab_horizontal = false)
   + MPlaceholder
     -> MPart (fx_layout_grab_horizontal = true)

I defined the layout properties for grabbing space as described on this page: http://wiki.eclipse.org/Efxclipse/Runtime/e4

Turned out the layout properties need to be copied to the placeholders for the e(fx)clipse renderer to lay out the two parts correctly (with the second part growing in the horizontal direction). This behaviour was a bit surprising, as I expected the renderer to find the layout information in the part element referenced by the placeholder. Is this the intended behaviour?

Cheers,
Uwe
Re: Layout of MParts that are referenced by MPlaceholders [message #1402810 is a reply to message #1391928] Thu, 17 July 2014 14:36 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The layout information have to be part of the placeholder - if you think
about it more closely it could be that in Perspective A the layout
requires the part to grab the space and in Perspective B it should not
and in Perspective C it is not even the child of a MPartSashContainer
but a completely different container.

So all informations like, closeable, ... need to be provided by the
placeholder and not the MPart which is reused.

Tom

On 01.07.14 18:01, Uwe San wrote:
> Hi,
>
> my application model contains placeholders that reference parts like this:
>
>
> + MPartSashContainer (horizontal = true)
> + MPlaceholder
> -> MPart (fx_layout_grab_horizontal = false)
> + MPlaceholder
> -> MPart (fx_layout_grab_horizontal = true)
>
> I defined the layout properties for grabbing space as described on this
> page: http://wiki.eclipse.org/Efxclipse/Runtime/e4
>
> Turned out the layout properties need to be copied to the placeholders
> for the e(fx)clipse renderer to lay out the two parts correctly (with
> the second part growing in the horizontal direction). This behaviour was
> a bit surprising, as I expected the renderer to find the layout
> information in the part element referenced by the placeholder. Is this
> the intended behaviour?
>
> Cheers,
> Uwe
Re: Layout of MParts that are referenced by MPlaceholders [message #1402814 is a reply to message #1391928] Thu, 17 July 2014 14:52 Go to previous message
Uwe San is currently offline Uwe SanFriend
Messages: 119
Registered: January 2012
Senior Member
That makes a lot of sense, indeed. Thanks!

Uwe
Previous Topic:SwingNode - ClassNotFoundException
Next Topic:Cannot install for Luna. Using update nightly site.
Goto Forum:
  


Current Time: Fri Apr 26 17:12:00 GMT 2024

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

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

Back to the top