[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] handle closing shell

>----- Oorspronkelijk bericht -----
: ian [mailto:ian@xxxxxx]
: maandag
, augustus
 16, 2004 01:14 AM
: eclipse-dev@xxxxxxxxxxx
: [eclipse-dev] handle closing shell
>Hi. Is there a way to handle a shell in its closing state? I would like
>to add a prompt before a user can close the main application through the
>'x' (close button).
>Thanks in advance.

shell.addDisposeListener(new DisposeListener() {

  public void widgetDisposed(DisposeEvent e) {
    e.doit = MessageDialog.openQuestion(shell, "Closing", "Really close?"));


>- ian
>eclipse-dev mailing list
>To change your delivery options, retrieve your password, or unsubscribe from this list, visit