IResource.move(IPath,int,IProgressMonitor)
and IResource.move(IProjectDescription,int,IProgressMonitor)
where the receiver is a project. Returns true
to accept responsibility for implementing this operation as per the API contracts. On entry to this hook method, the source project is guaranteed to exist and be open in the workspace resource tree. If the given description contains a different name from that of the given project, then the project is being renamed (and its content possibly relocated). If the given description contains the same name as the given project, then the project is being relocated but not renamed. When the project is being renamed, the destination project is guaranteed not to exist in the workspace resource tree.
Returning false
is the easy way for the implementation to say "pass". It is equivalent to calling tree.standardMoveProject
and returning true
.
The implementation of this method runs "below" the resources API and is therefore very restricted in what resource API method it can call. The list of useable methods includes most resource operations that read but do not update the resource tree; resource operations that modify resources and trigger deltas must not be called from within the dynamic scope of the invocation of this method.
@param tree the workspace resource tree; this object is only valid for the duration of the invocation of this method, and must not be used after this method has completed @param source the handle of the open project to move; the receiver ofIResource.move(IProjectDescription,int,IProgressMonitor)
or IResource.move(IPath,int,IProgressMonitor)
@param description the new description of the project; the firstparameter to IResource.move(IProjectDescription,int,IProgressMonitor)
, or a copy of the project's description with the location changed to the path given in the first parameter to IResource.move(IPath,int,IProgressMonitor)
@param updateFlags bit-wise or of update flag constants as per IResource.move(IProjectDescription,int,IProgressMonitor)
or IResource.move(IPath,int,IProgressMonitor)
@param monitor the progress monitor, or null
as per IResource.move(IProjectDescription,int,IProgressMonitor)
or IResource.move(IPath,int,IProgressMonitor)
@return false
if this method declined to assume responsibility for this operation, and true
if this method attempted to carry out the operation
@exception OperationCanceledException if the operation is canceled. Cancelation can occur even if no progress monitor is provided.
@see IResource#move(org.eclipse.core.runtime.IPath,int,IProgressMonitor)
@see IResource#move(IProjectDescription,int,IProgressMonitor)
|
|
|
|