Skip to main content


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 09:21
Alexander May is currently offline Alexander MayFriend
Messages: 20
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: Tue Mar 19 09:57:39 GMT 2024

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

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

Back to the top