| org.eclipse.ui.internal.ide.undo.AbstractResourceDescription org.eclipse.ui.internal.ide.undo.FileDescription
FileDescription | public class FileDescription extends AbstractResourceDescription (Code) | | FileDescription is a lightweight description that describes a file to be
created.
This class is not intended to be instantiated or used by clients.
since: 3.3 |
Constructor Summary | |
public | FileDescription(IFile file) Create a FileDescription that can be used to later restore the given
file. | public | FileDescription(IFile file, URI linkLocation, IFileContentDescription fileContentDescription) Create a file description from the specified file handle. |
FileDescription | public FileDescription(IFile file)(Code) | | Create a FileDescription that can be used to later restore the given
file. The file typically already exists, but this constructor will not
fail if the file does not exist.
Parameters: file - the file to be restored. |
FileDescription | public FileDescription(IFile file, URI linkLocation, IFileContentDescription fileContentDescription)(Code) | | Create a file description from the specified file handle. The handle does
not exist, so no information should be derived from it. If a location
path is specified, this file should represent a link to another location.
The content description describes any state that should be used when the
file resource is created.
Parameters: file - the file to be described Parameters: linkLocation - the location of the file's link, or null if thefile is not linked Parameters: fileContentDescription - the file content description that can be used to getinformation about the file, such as its initial content |
createExistentResourceFromHandle | public void createExistentResourceFromHandle(IResource resource, IProgressMonitor monitor) throws CoreException(Code) | | |
createResourceHandle | public IResource createResourceHandle()(Code) | | |
isValid | public boolean isValid()(Code) | | |
recordStateFromHistory | public void recordStateFromHistory(IResource resource, IProgressMonitor monitor) throws CoreException(Code) | | |
restoreResourceAttributes | protected void restoreResourceAttributes(IResource resource) throws CoreException(Code) | | |
Methods inherited from org.eclipse.ui.internal.ide.undo.AbstractResourceDescription | public IResource createResource(IProgressMonitor monitor) throws CoreException(Code)(Java Doc) IWorkspace getWorkspace()(Code)(Java Doc) public boolean isValid()(Code)(Java Doc) protected void restoreResourceAttributes(IResource resource) throws CoreException(Code)(Java Doc) public boolean verifyExistence(boolean checkMembers)(Code)(Java Doc)
|
|
|