Bug 7697

Summary: Provide extensions for move, rename and delete operations
Product: [Eclipse Project] Platform Reporter: Duong Nguyen <duongn>
Component: ResourcesAssignee: DJ Houghton <dj.houghton>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1    
Version: 1.0   
Target Milestone: 2.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Duong Nguyen CLA 2002-01-16 09:46:12 EST
Eclipse provides default behavior for the copy/move/rename/delete operations. 
The default behavior is not sufficient for some user plugins. Also, the plugins 
do not receive any pre-notification of these events. We therefore request one 
of the following changes:

1) Provide a mechanism (through extension points) to allow plugins to extend 
the behavior of these operation (similar to trapping global actions)

AND/OR

2) Provide a mechanism (the resource change events) to pre-notify the plugins 
of these events.
Comment 1 DJ Houghton CLA 2002-03-21 11:52:02 EST
Extension point moveDeleteHook has been added to the Resources Plugin. The VCM 
team will create a Team Provider extension point which providers can hook into 
and receive the forwarded move/delete calls.

See:
  org.eclipse.core.team.IMoveDeleteHook
  org.eclipse.core.team.IResourceTree

If you create an IResourceChangeListner and register as PRE_DELETE you will 
receive pre-notification of deletes and moves. (deletion of the source project)