How to prevent an editor from closing? [message #328217] |
Mon, 19 May 2008 08:05 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: fuxianghit.gmail.com
Hi All,
My project requires to show a confirm dialog after the user clicking on
the 'x' button (or select File -> Close, or File -> Close All,, or
whatever) to close the editor, prompts for "Continue" or "Cancel" the
closing operation, and if the user selects cancel, I would stop eclipse
from closing this editor.
I have tracked to org.eclipse.ui.internal.SaveablesList where the
standard eclipse closing operation will show a prompt for saving dialog,
but it's impossible to add anything here. And unfortunately I didn't find
any other information on this issue after digging into those docs I can
get. Could you please help me out? Thanks a lot!
--
Regards
Shone
|
|
|
|
Powered by
FUDForum. Page generated in 0.03868 seconds