[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Closing a Modal MessageBox in code

HI all,

Can anyone tell me whether it is possible to close a modal messagebox
(org.eclipse.swt.widgets.MessageBox) from code? I need to be able to close
down an open modal dialog box in some circumstance in my code (when
shutting down for example, or a new condition arises which is more
important than the message in the modal dialog). I could convert this to
use a modless dialog box but I do need the behaviour of a modal dialog
99.9% of the time.

I checked the obvious like 'dispose()' but no much method exists.

Thanks