Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Interrupt deletion action/command from IProject
Interrupt deletion action/command from IProject [message #719504] Sat, 27 August 2011 14:28
Eclipse UserFriend
Originally posted by: Peter Reuter

Hi all,

some fellow students and I are working on an eclipse plugin for code
reviews (AgileReview). Therefore all review data are stored in a
IProject having its own project nature.

In order to prevent the user from deleting the current necessary folder
for the plugin, we want to interrupt the deletion of the project.

We tried this by using an IResourceChangeListener, but unfortunately we
cannot find any interruption method. Then we tried to catch the command
with an own handler in order to avoid the deletion and inform the user.
For the shortcut “del” everything worked fine, but selecting delete over
the popup menu, the deletion will be performed and the specified handler
is ignored.We think this is due to the implementation, that the command
org.eclipse.ui.edit.delete is only a wrapper for the action used in the
popup menu of a IResource.

Google does not help us anymore. Is there a way to interrupt the delete
command/action in a given context (IProject with a specific
projectNature) or simply redirect it to a new handler like it worked
successfully for the shortcut “del”?

Hope, someone can help,

Best regards,
Peter
Previous Topic:Help request: How do I send an object as a parameter in a command?
Next Topic:Creating an Eclipse plugin project from code
Goto Forum:
  


Current Time: Tue Apr 16 13:55:32 GMT 2024

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

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

Back to the top