org.acm.seguin.refactor.undo
Interface UndoAction

All Known Implementing Classes:
DefaultUndoAction, JEditUndoAction

public interface UndoAction

Stores the undo operation. The undo operation consists of a description of the refactoring that was performed to create this UndoAction and a list of files that have changed.

The files that have changed are indexed files, in that they have an index appended to the name of the file.

Since:
2.7.05
Version:
$Id: UndoAction.java,v 1.3 2003/07/29 20:51:56 mikeatkinson Exp $
Author:
Mike Atkinson

Method Summary
 void add(java.io.File oldFile, java.io.File newFile)
          Adds a file to this action
 java.lang.String getDescription()
          Gets the Description attribute of the UndoAction object
 void setDescription(java.lang.String description)
          Sets the Description attribute of the UndoAction object
 void undo()
          Undo the current action
 

Method Detail

setDescription

void setDescription(java.lang.String description)
Sets the Description attribute of the UndoAction object

Parameters:
description - The Description value

getDescription

java.lang.String getDescription()
Gets the Description attribute of the UndoAction object

Returns:
The Description value

add

void add(java.io.File oldFile,
         java.io.File newFile)
Adds a file to this action

Parameters:
oldFile - the original file
newFile - the new file

undo

void undo()
Undo the current action