|
|
Re: pop-up shell closing [message #467743 is a reply to message #467742] |
Sun, 05 February 2006 17:03 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
If you are popping up a shell from within an already running display
thread you shouldn't be calling main and creating a new display. You
should instead simply bring up your popup. You disposed the display in
the popup's main. But that is the same display that the rest of your
application is using, so naturally that shut them down too.
All you need to do is:
Medclipse_Consultation_Consultation_PopUp_Consulte thisClass =
new Medclipse_Consultation_Consultation_PopUp_Consulte();
thisClass.createSShell();
thisClass.sShell.open();
PS: You should make the shell you create be modal to your application
too so that your application is disabled until your popup is complete.
I'm assuming that is what you want to do. In that case you need to
create your shell with:
new Shell(applicationParentShell, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
this will make it look like a popup dialog and your application won't
continue until it has been closed.
Dominique Buenzli wrote:
> And the question is: how to do so that when I close the pop-up shell,
> the main application is not closing with. Thanks.
>
--
Thanks,
Rich Kulp
|
|
|
|
Powered by
FUDForum. Page generated in 0.04541 seconds