org.acm.seguin.ide.jedit.action
Class JEditUndoAction

java.lang.Object
  extended by org.acm.seguin.ide.jedit.action.Action
      extended by org.acm.seguin.ide.jedit.action.JEditUndoAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, UndoAction

public class JEditUndoAction
extends Action
implements UndoAction, java.io.Serializable

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:
0.1
Version:
$Id: JEditUndoAction.java,v 1.2 2003/09/25 13:30:36 mikeatkinson Exp $
Author:
Mike Atkinson
See Also:
Serialized Form

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

JEditUndoAction

public JEditUndoAction()
Constructor for the UndoAction object

Method Detail

setDescription

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

Specified by:
setDescription in interface UndoAction
Parameters:
description - the description of the action

getText

public java.lang.String getText()
Returns the text to be shown on the button and/or menu item.

Specified by:
getText in class Action
Returns:
The text value

getDescription

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

Specified by:
getDescription in interface UndoAction
Returns:
The Description value

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Description of the Method

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
ae - Description of the Parameter

add

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

Specified by:
add in interface UndoAction
Parameters:
oldFile - the original file
newFile - the new file

undo

public void undo()
Undo the current action

Specified by:
undo in interface UndoAction