|How to force preview on deletion of Resource [message #874249]
||Sun, 20 May 2012 09:21
| Alexander May
Registered: March 2011
I'm developing RCP application that basically works on IResources.
I implemented my own Editor, which correctly sets it's own dirty state when the file is changed. This makes RCP ask whether to save the Editor or not when it is closed.
But when I delete a file opened and changed in my own editor the DeleteWizard does not ask remind me of the unsaved changes before deleting the modified Resource (as it does when I do the same with the default Eclipse TestEditor).
The only option I found Is a ResourceChangeListener, but this gets invoked just afte the actual deletion took place, so it does not help me deciding to keep it.
What might I have missed? Do I need to mark the IResource somehow to be dirty? How can I achieve this?
Powered by FUDForum
. Page generated in 0.07660 seconds