Basically, I want to implement the following functionality:
When the user wants to close the window by clicking X button, I wish to popup a message saying "do you wish to save your crap, YES | NO | CANCEL". I did this by adding a disposeListener on the shell...
Now I am trying to figure out how to prevent disposal of the shell in case the user clicks "CANCEL"... Any ideas?
Well, inside of Eclipse, you can pick Help | Help Contents, and then in the help viewer open "Platform Plug-in Developer Guide", then Reference, then API Reference, and you've got the whole org.eclipse Javadoc tree. I'm sure there's a separate download somewhere, but I can't tell you where off the top of my head.
But I actually rarely look at it -- I tend to just look at the platform source.
subject: SWT: How to prevent window from closing when clicking "X"?