org.springframework.roo.file.undo
Class DeleteFile

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

public class DeleteFile
extends Object
implements UndoableOperation

UndoableOperation to delete a file.

Since:
1.0
Author:
Ben Alex

Constructor Summary
DeleteFile(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

DeleteFile

public DeleteFile(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.