org.springframework.roo.file.undo
Class CreateFile

java.lang.Object
  extended by org.springframework.roo.file.undo.CreateFile
All Implemented Interfaces:
UndoableOperation

public class CreateFile
extends Object
implements UndoableOperation

UndoableOperation to create a file.

Since:
1.0
Author:
Ben Alex

Constructor Summary
CreateFile(UndoManager undoManager, FilenameResolver filenameResolver, File actual)
           
 
Method Summary
 void reset()
          Release any temporary resources consumed by the UndoableOperation.
 boolean undo()
          Attempt to undo the changes, and release any resources consumed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateFile

public CreateFile(UndoManager undoManager,
                  FilenameResolver filenameResolver,
                  File actual)
Method Detail

reset

public void reset()
Description copied from interface: UndoableOperation
Release any temporary resources consumed by the UndoableOperation.

No exceptions may be thrown.

Specified by:
reset in interface UndoableOperation

undo

public boolean undo()
Description copied from interface: UndoableOperation
Attempt to undo the changes, and release any resources consumed.

No exceptions may be thrown.

Specified by:
undo in interface UndoableOperation
Returns:
whether the undo was successful or not


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.