[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Intercept / Abort SWT.Close
|
Set the event.doit field to false to cancel the operation.
See:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet99.java?rev=HEAD&content-type=text/vnd.viewcvs-markup
"Sebastian Scholz" <ssc@xxxxxxxxxxx> wrote in message
news:pan.2005.06.01.12.39.19.657000@xxxxxxxxxxxxxx
> Hi
>
> I have a Listener on SWT.close like this
>
> shell.addListener(SWT.Close,new Listener() {
> public void handleEvent (Event event) {
> // I can intercept and put it onhonld with a dialogbox
> // but what to do here to abort this.
> }
> });
>
> Does anyone have an idea how I can abort the closing process ?
>
> -Sebastian