Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to force preview on deletion of Resource
How to force preview on deletion of Resource [message #874249] Sun, 20 May 2012 05:21
Alexander May is currently offline Alexander May
Messages: 19
Registered: March 2011
Junior Member
HI,

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?

Alexander
Previous Topic:Tabbed Views
Next Topic:[RCP 4] Add menu item to menu at runtime
Goto Forum:
  


Current Time: Sat Apr 19 23:21:34 EDT 2014

Powered by FUDForum. Page generated in 0.01413 seconds