Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to prevent an editor from closing?
How to prevent an editor from closing? [message #328217] Mon, 19 May 2008 08:05 Go to next message
Eclipse UserFriend
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
Re: How to prevent an editor from closing? [message #328404 is a reply to message #328217] Fri, 23 May 2008 23:06 Go to previous message
David Kyle is currently offline David KyleFriend
Messages: 125
Registered: July 2009
Senior Member
Shone,

Have your editor implemented org.eclipse.ui.ISaveablePart2.

David Kyle
http://richclientplatform.blogspot.com/
Previous Topic:Separators in org.eclipse.ui.popupMenus
Next Topic:How to bind Tab in plugin.xml for an editor.
Goto Forum:
  


Current Time: Wed Jul 17 12:24:54 GMT 2024

Powered by FUDForum. Page generated in 0.09125 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top