Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Override or extend default delete action
Override or extend default delete action [message #23334] Wed, 24 September 2008 06:17
Eclipse UserFriend
Apologies first as I've posted this message also in the eclipse.platform
group, but just found the eclipse.platform.pde newsgroup, so this one
seems more appropriate.

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
Previous Topic:Determining Plug-ins in a Feature
Next Topic:Override or extend default delete action
Goto Forum:
  


Current Time: Tue Jul 22 14:04:48 EDT 2025

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

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

Back to the top