|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.ide.jedit.action.Action
org.acm.seguin.ide.jedit.action.JEditUndoAction
public class JEditUndoAction
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.
Field Summary |
---|
Fields inherited from class org.acm.seguin.ide.jedit.action.Action |
---|
cmItem, tbButton, viewer |
Constructor Summary | |
---|---|
JEditUndoAction()
Constructor for the UndoAction object |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
Description of the Method |
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 |
java.lang.String |
getText()
Returns the text to be shown on the button and/or menu item. |
void |
setDescription(java.lang.String description)
Sets the Description attribute of the UndoAction object |
void |
undo()
Undo the current action |
Methods inherited from class org.acm.seguin.ide.jedit.action.Action |
---|
clone, getButton, getIcon, getMenuItem, setViewer |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JEditUndoAction()
Method Detail |
---|
public void setDescription(java.lang.String description)
setDescription
in interface UndoAction
description
- the description of the actionpublic java.lang.String getText()
getText
in class Action
public java.lang.String getDescription()
getDescription
in interface UndoAction
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
ae
- Description of the Parameterpublic 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 |