Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Intercepting: "Close Editor + Don't Save"
Intercepting: "Close Editor + Don't Save" [message #468151] Tue, 04 August 2009 11:50
Eclipse UserFriend
Originally posted by:


do You know any way to intercept the situation, when you close an dirty
editor and choose not to save the file.

My first ideas were similar to advices from the topic "Confirm view
closing" of Felix Dorner (e.g. ISaveablePart2.promptToSaveOnClose()).
But this solution can have some design disadvantages.

Another Idea was to listen on FileBuffer for changes
(IFileBufferListener). But it did not porvided the needed funcionality.

Do You have any other Ideas?

Thanks in advance!

Previous Topic:Eclipse custom configuration file
Next Topic:Viewpart vs. Editorpart, proxy Editorpart, common Eclipse design question
Goto Forum:

Current Time: Wed Apr 25 22:31:19 GMT 2018

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

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