|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.refactor.undo.DefaultUndoAction
public class DefaultUndoAction
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.
Constructor Summary | |
---|---|
DefaultUndoAction()
Constructor for the UndoAction object |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultUndoAction()
Method Detail |
---|
public void setDescription(java.lang.String description)
setDescription
in interface UndoAction
description
- the description of the actionpublic java.lang.String getDescription()
getDescription
in interface UndoAction
public void add(java.io.File oldFile, java.io.File newFile)
add
in interface UndoAction
oldFile
- the original filenewFile
- the new filepublic void undo()
undo
in interface UndoAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |