Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Model Processing and Rendering Window children of a Window
Model Processing and Rendering Window children of a Window [message #1140657] Wed, 16 October 2013 14:11 Go to next message
Pablo Gomez is currently offline Pablo GomezFriend
Messages: 28
Registered: October 2013
Junior Member
Hi all

I'm facing the following problem. I need to have a window inside a window in the application model. Thus, I need in the children to get access to the parent window in order to do the initOwner(owner) on show.

The problem I found out is that the WindowRendererImpl I have, defined as follows:

MyCustomWindowImpl extends WLayoutedWidgetImpl<Stage, GridPane, MWindow> implements
			WWindow<Stage>


is not called. Introspecting the efxclipse source code I found out that in the BaseWindowRenderer.java the code responsible for processing the window children commented:

This is in the doProcessContent method

for (MWindow w : element.getWindows()) {
    engineCreateWidget(w);
}



If I uncomment that piece of code, my WindowImpl is invoked. However, I'm not sure how to access to the Window parent. Any hint? Thanks!!

Best
Pablo


Re: Model Processing and Rendering Window children of a Window [message #1140714 is a reply to message #1140657] Wed, 16 October 2013 14:58 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I'm not sure why it is commented out. Please file a bug and I'll
reenable it. The child windows have to be processed.

Tom

On 16.10.13 16:53, Pablo Gomez Perez wrote:
> Hi all
>
> I'm facing the following problem. I need to have a window inside a
> window in the application model. Thus, I need in the children to get
> access to the parent window in order to do the initOwner(owner) on show.
>
> The problem I found out is that the WindowRendererImpl I have, defined
> as follows:
>
>
> MyCustomWindowImpl extends WLayoutedWidgetImpl<Stage, GridPane, MWindow>
> implements
> WWindow<Stage>
>
>
> is not called. Introspecting the efxclipse source code I found out that
> in the BaseWindowRenderer.java the code responsible for processing
> the window children commented:
>
> This is in the doProcessContent method
>
>
> for (MWindow w : element.getWindows()) {
> engineCreateWidget(w);
> }
>
>
>
> If I uncomment that piece of code, my WindowImpl is invoked. However,
> I'm not sure how to access to the Window parent. Any hint? Thanks!!
>
> Best
> Pablo
>
>
>
Re: Model Processing and Rendering Window children of a Window [message #1140735 is a reply to message #1140714] Wed, 16 October 2013 15:20 Go to previous message
Pablo Gomez is currently offline Pablo GomezFriend
Messages: 28
Registered: October 2013
Junior Member
ok, thanks for the quick reply. I have opened the bug here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=419608
I have also added some more findings

best
Previous Topic:Cannot add an item to the toolbar programmatically
Next Topic:eclipse.ini not working
Goto Forum:
  


Current Time: Sat Apr 20 01:26:39 GMT 2024

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

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

Back to the top