Class RedoCommand

java.lang.Object
fr.istic.aco.editor.commands.RedoCommand
All Implemented Interfaces:
Command

public class RedoCommand extends Object implements Command
The RedoCommand class implements the functionality for redoing the last undone action in the text editor.
  • Constructor Details

    • RedoCommand

      public RedoCommand(UndoManager undoManager)
      Constructs a RedoCommand with the specified dependencies.
      Parameters:
      undoManager - the undo manager for handling undo and redo functionality
  • Method Details

    • execute

      public void execute()
      Executes the redo operation.

      This method invokes the UndoManager.redo() method to redoing the last undone action in the text editor.

      Specified by:
      execute in interface Command