Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Delete/Rename/Move.. Files/Folders...(Package Explorer action on project/file/folder)
Delete/Rename/Move.. Files/Folders... [message #495821] Fri, 06 November 2009 04:28 Go to next message
Alexander Mack is currently offline Alexander Mack
Messages: 100
Registered: July 2009
Senior Member
Hello,
We have our own plugin with its own project nature e.c. . Now if a file of our project gets deleted/renamed/moved... by the user we need some additional actions.
Does somebody knows the extension point or something else to get invoked if a user starts any of those actions?

I tried the following:
<extension point="org.eclipse.core.resources.moveDeleteHook">
<moveDeleteHook class="a4l.wizard.participants.DeleteMoveParicipant "/>
</extension>

But it seems that it the package explorer events will not invole the DeleteMoveParicipant methods.

I would appreciate any help!
Best regards.
Alex

[Updated on: Fri, 06 November 2009 04:46]

Report message to a moderator

Re: Delete/Rename/Move.. Files/Folders... [message #499486 is a reply to message #495821] Sun, 22 November 2009 19:39 Go to previous messageGo to next message
Francis Upton IV is currently offline Francis Upton IV
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
Look at the LTK stuff, that provides checking and notification of all of these things.

http://www.eclipse.org/articles/Article-LTK/ltk.html


Re: Delete/Rename/Move.. Files/Folders... [message #499618 is a reply to message #495821] Mon, 23 November 2009 09:44 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

The package explorer uses the LTK actions (as pointed to by Francis).

The Project Explorer doesn't yet if the action was initiated as Drag and Drop, https://bugs.eclipse.org/bugs/show_bug.cgi?id=208910

PW


Re: Delete/Rename/Move.. Files/Folders... [message #558272 is a reply to message #499618] Fri, 10 September 2010 14:27 Go to previous message
Swati Sapar is currently offline Swati Sapar
Messages: 20
Registered: September 2010
Junior Member
Add you own Project builder. This will be invoked after every action in Project explorer. You can add your response actions to your ProjectBuilder
extn : org.eclipse.core.resources.builders
Previous Topic:Bad file properties after CVS update
Next Topic:Hide context menuitem in navigator/package explorer
Goto Forum:
  


Current Time: Fri Jul 25 19:13:56 EDT 2014

Powered by FUDForum. Page generated in 0.01996 seconds