|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This factory is used to build a resource delta that represents a proposed change
that can then be passed to the 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.
This interface is not intended to be implemented by clients.
ResourceChangeValidator
,
ModelProvider
Method Summary | |
---|---|
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 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 path. |
Method Detail |
public void change(IFile file)
file
- the file whose contents will be changedpublic void close(IProject project)
project
- the project that will be closedpublic void copy(IResource resource, IPath destination)
resource
- the resource that will be copieddestination
- the destination the resource is being copied topublic void create(IResource resource)
resource
- the resource that is createdpublic void delete(IResource resource)
resource
- the resource that will be deletedpublic IResourceDelta getDelta()
public void move(IResource resource, IPath destination)
resource
- the resource that will be moveddestination
- the destination the resource is being moved to
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.