focus on window [message #1693634] |
Mon, 27 April 2015 07:27  |
Eclipse User |
|
|
|
Hello
I have a very similar problem (with different implementation and on the e(fx)clipse):
https://www.eclipse.org/forums/index.php/m/941058/?msg_941058
Quote:I have to create multiwindowed e4 app. (...) I'm trying to focus on one of the windows programmaticaly...
I tried (sample code):
MTrimmedWindow window001 = getWindow( 1 ); //with focus / on top
MTrimmedWindow window002 = getWindow( 2 );
MTrimmedWindow window003 = getWindow( 3 );
EModelService.bringToTop( window001 );
window001.setOnTop( true );
window001.getContext().activate();
I can't get a Stage from window to try Stage.requestFocus().
I suppose that can be a bug...
Regards
|
|
|
Re: focus on window [message #1693643 is a reply to message #1693634] |
Mon, 27 April 2015 08:52   |
Eclipse User |
|
|
|
Can you file a bug-report - I'll try to look at this as soon as possible.
Tom
On 27.04.15 09:27, Bart Cichy wrote:
> Hello
> I have a very similar problem (with different implementation and on the
> e(fx)clipse):
> https://www.eclipse.org/forums/index.php/m/941058/?msg_941058
> Quote:
>> I have to create multiwindowed e4 app. (...) I'm trying to focus on
>> one of the windows programmaticaly...
>
> I tried (sample code):
>
> MTrimmedWindow window001 = getWindow( 1 ); //with focus / on top
> MTrimmedWindow window002 = getWindow( 2 );
> MTrimmedWindow window003 = getWindow( 3 );
>
> EModelService.bringToTop( window001 );
> window001.setOnTop( true );
> window001.getContext().activate();
>
> I can't get a Stage from window to try Stage.requestFocus().
>
> I suppose that can be a bug...
>
> Regards
|
|
|
Re: focus on window [message #1693644 is a reply to message #1693643] |
Mon, 27 April 2015 08:53   |
Eclipse User |
|
|
|
As a temporary work around have you tried to activate a part in the
window in question through the EPartService?
Tom
On 27.04.15 10:52, Tom Schindl wrote:
> Can you file a bug-report - I'll try to look at this as soon as possible.
>
> Tom
>
> On 27.04.15 09:27, Bart Cichy wrote:
>> Hello
>> I have a very similar problem (with different implementation and on the
>> e(fx)clipse):
>> https://www.eclipse.org/forums/index.php/m/941058/?msg_941058
>> Quote:
>>> I have to create multiwindowed e4 app. (...) I'm trying to focus on
>>> one of the windows programmaticaly...
>>
>> I tried (sample code):
>>
>> MTrimmedWindow window001 = getWindow( 1 ); //with focus / on top
>> MTrimmedWindow window002 = getWindow( 2 );
>> MTrimmedWindow window003 = getWindow( 3 );
>>
>> EModelService.bringToTop( window001 );
>> window001.setOnTop( true );
>> window001.getContext().activate();
>>
>> I can't get a Stage from window to try Stage.requestFocus().
>>
>> I suppose that can be a bug...
>>
>> Regards
>
|
|
|
Re: focus on window [message #1693647 is a reply to message #1693644] |
Mon, 27 April 2015 09:17   |
Eclipse User |
|
|
|
Yes, I tried. unfortunately does not work too. Of course flag MTrimmedWinwod.isOnTop() is on true (after bringToTop(), setOnTop( true ), but the window is in background.
bug: 465545
|
|
|
Re: focus on window [message #1693711 is a reply to message #1693647] |
Mon, 27 April 2015 18:50  |
Eclipse User |
|
|
|
The bug is fixed now so:
----8<----
MTrimmedWindow window001 = getWindow( 1 ); //with focus / on top
MTrimmedWindow window002 = getWindow( 2 );
MTrimmedWindow window003 = getWindow( 3 );
EModelService.bringToTop( window001 );
----8<----
should do the job now.
Tom
On 27.04.15 11:17, Bart Cichy wrote:
> Yes, I tried. unfortunately does not work too. Of course flag
> MTrimmedWinwod.isOnTop() is on true (after bringToTop(), setOnTop( true
> ), but the window is in background.
> bug: 465545
|
|
|
Powered by
FUDForum. Page generated in 0.03588 seconds