| org.eclipse.ui.ide.undo.AbstractWorkspaceOperation org.eclipse.ui.ide.undo.AbstractResourcesOperation org.eclipse.ui.ide.undo.AbstractCreateResourcesOperation org.eclipse.ui.ide.undo.CreateFileOperation
CreateFileOperation | public class CreateFileOperation extends AbstractCreateResourcesOperation (Code) | | A CreateFileOperation represents an undoable operation for creating a file in
the workspace. If a link location is specified, the folder is considered to
be linked to the file at the specified location. If a link location is not
specified, the file will be created in the location specified by the handle,
and the entire containment path of the file will be created if it does not
exist. Clients may call the public API from a background thread.
This class is intended to be instantiated and used by clients. It is not
intended to be subclassed by clients.
since: 3.3 |
CreateFileOperation | public CreateFileOperation(IFile fileHandle, URI linkLocation, InputStream contents, String label)(Code) | | Create a CreateFileOperation
Parameters: fileHandle - the file to be created Parameters: linkLocation - the location of the file if it is to be linked Parameters: contents - the initial contents of the file, or null if there is to be nocontents Parameters: label - the label of the operation |
Methods inherited from org.eclipse.ui.ide.undo.AbstractCreateResourcesOperation | public IStatus computeExecutionStatus(IProgressMonitor monitor)(Code)(Java Doc) public IStatus computeRedoableStatus(IProgressMonitor monitor)(Code)(Java Doc) public IStatus computeUndoableStatus(IProgressMonitor monitor)(Code)(Java Doc) protected void doExecute(IProgressMonitor monitor, IAdaptable uiInfo) throws CoreException(Code)(Java Doc) protected void doUndo(IProgressMonitor monitor, IAdaptable uiInfo) throws CoreException(Code)(Java Doc) protected ISchedulingRule getExecuteSchedulingRule()(Code)(Java Doc) protected ISchedulingRule getUndoSchedulingRule()(Code)(Java Doc) protected boolean updateResourceChangeDescriptionFactory(IResourceChangeDescriptionFactory factory, int operation)(Code)(Java Doc)
|
|
|