Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Show child model window on parent modal window open
Show child model window on parent modal window open [message #456796] Wed, 08 June 2005 19:24
Allan is currently offline AllanFriend
Messages: 1
Registered: July 2009
Junior Member
I am trying to design a modal dialog that contains a button to open a
child modal dialog (which will filter items in a list). Since my users
will always click this button as soon as the parent dialog pops up, I
would like to automatically pop this child dialog up as soon as the
parent dialog is visible.

Tracing through _Window.open()_, I would like the child pop-up to be
opened after the _shell.open();_ call and prior to the
_runEventLoop(shell);_ call.

One way to go about this would be to extend Dialog, call
_setBlockOnOpen(false);_, override _open();_, call _shell.open()_, pop
up my filter dialog and after that closes, run the event loop.

The problem with this is _Window.runEventLoop(Shell)_ is private, so I
would be forced to duplicate that function on my custom dialog. This
seems like a less-than-ideal scenario.

Does anybody else have a better way to accomplish this?
Previous Topic:Problems with TreeViewer and java.io.File.listRoots()
Next Topic:How to use TableTreeEditor??
Goto Forum:
  


Current Time: Fri Apr 26 01:32:47 GMT 2024

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

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

Back to the top