public interface IResourceChangeDescriptionFactory
ResourceChangeValidator.validateChange(IResourceDelta, IProgressMonitor)
method in order to validate the change with any model providers stored in those resources.
The deltas created by calls to the methods of this interface will be the same as
those generated by the workspace if the proposed operations were performed.
This factory does not validate that the proposed operation is valid given the current state of the resources and any other proposed changes. It only records the delta that would result.
ResourceChangeValidator
,
ModelProvider
Modifier and Type | Method and Description |
---|---|
void |
change(IFile file)
Record a delta that represents a content change for the given file.
|
void |
close(IProject project)
Record the set of deltas representing the closed of a project.
|
void |
copy(IResource resource,
IPath destination)
Record the set of deltas representing a copy of the given resource to the
given workspace path.
|
void |
create(IResource resource)
Record a delta that represents a resource being created.
|
void |
delete(IResource resource)
Record the set of deltas representing a deletion of the given resource.
|
IResourceDelta |
getDelta()
Return the proposed delta that has been accumulated by this factory.
|
void |
move(IResource resource,
IPath destination)
Record the set of deltas representing a move of the given resource to the
given workspace path.
|
void change(IFile file)
file
- the file whose contents will be changedvoid close(IProject project)
project
- the project that will be closedvoid copy(IResource resource, IPath destination)
resource
- the resource that will be copieddestination
- the full workspace path of the destination the resource is being copied tovoid create(IResource resource)
resource
- the resource that is createdvoid delete(IResource resource)
resource
- the resource that will be deletedIResourceDelta getDelta()
void move(IResource resource, IPath destination)
resource
- the resource that will be moveddestination
- the full workspace path of the destination the resource is being moved to
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.