Override or extend default resource delete action [message #331821] |
Tue, 23 September 2008 21:05  |
Eclipse User |
|
|
|
Is there a way to override or extend the default action for deleting a
resource from the Project Explorer?
Basically I want to be able to attempt to delete a file, and in addition
to the confirmation message 'Are you sure you want to delete xxxx?', I
want it to fire up an additional dialog warning the user in the case of
the file being referenced in a GMF diagram - something like 'File xxxx is
referenced in file yyyy. Are you sure you want to delete xxxx?'.
I've tried looking at seeing if this can be done via a resource listener,
but the event reported by IResourceDelta.REMOVED it seems is already too
late, and I don't see a way of intercepting the delete action before the
delete happens.
Any help will be greatly appreciated.
Best regards,
-David
|
|
|
|
Powered by
FUDForum. Page generated in 0.02851 seconds