Bug 284773 - [JFace] No notification mechanism for after a Window is open
Summary: [JFace] No notification mechanism for after a Window is open
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-07-27 11:43 EDT by Brian Mathews CLA
Modified: 2019-09-06 16:19 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Mathews CLA 2009-07-27 11:43:49 EDT
There is no way to insert code after the shell has been opened, but before the blocking code in the org.eclipse.jface.window.Window class.

I tried to override the open() method on the Window class, but the runEventLoop(...) method is private, and I had no way to access the exception handler. So, I could not recreate the same behavior as the Window class.

I also tried adding a ShellListener to the shell, but the shellActivated(...) method is called before the shell is actually shown.
Comment 1 Ralf Sternberg CLA 2009-07-27 15:16:03 EDT
Could you please outline your use case? How would you solve the problem in RCP? Which SWT/JFace API is missing or works different than in RCP?
Comment 2 Brian Mathews CLA 2009-07-27 15:20:06 EDT
Sorry, I think I logged this under the wrong product. Is there another product I should log it under for a problem with the JFace API in RCP?
Comment 3 Ralf Sternberg CLA 2009-07-27 15:49:55 EDT
Please move this bug to Platform / UI and set the version number.
Comment 4 Boris Bokowski CLA 2010-06-21 14:21:48 EDT
Sorry for not reacting to this bug report, it fell through the cracks because the assignee was still set to "rap.w4t-inbox@eclipse.org".

I do have the same questions as Ralf though - what exactly are you trying to do?
Comment 5 Brian Mathews CLA 2010-06-21 16:44:08 EDT
I want to be able to perform an action once I know that the shell is showing to the user. For example, if I have a data set that I am trying to show to the user, and on load it is determined to be to large to show, I would like to be able to show a filter dialog for the data as soon as the shell opens.
Comment 6 Thomas Schindl CLA 2010-06-21 16:46:28 EDT
(In reply to comment #5)
> I want to be able to perform an action once I know that the shell is showing to
> the user. For example, if I have a data set that I am trying to show to the
> user, and on load it is determined to be to large to show, I would like to be
> able to show a filter dialog for the data as soon as the shell opens.

Could you install an Activate-Listener on the shell?
Comment 7 Thomas Schindl CLA 2010-06-21 16:47:50 EDT
(In reply to comment #6)
> (In reply to comment #5)
> > I want to be able to perform an action once I know that the shell is showing to
> > the user. For example, if I have a data set that I am trying to show to the
> > user, and on load it is determined to be to large to show, I would like to be
> > able to show a filter dialog for the data as soon as the shell opens.
> 
> Could you install an Activate-Listener on the shell?

Upps should have read the description better :-( you already tried this.
Comment 8 Eclipse Webmaster CLA 2019-09-06 16:19:03 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.