org.springframework.roo.file.undo
Class DeleteDirectory

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

public class DeleteDirectory
extends Object
implements UndoableOperation

UndoableOperation to delete a directory.

Since:
1.0
Author:
Ben Alex

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

DeleteDirectory

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