Class LauncherUndo

All Implemented Interfaces:
Serializable, EventListener, UndoableEditListener, UndoableEdit

public class LauncherUndo extends UndoManager
This provides undo support for Launcher.
Author:
Douglas Brown
See Also:
  • Constructor Details

    • LauncherUndo

      public LauncherUndo(Launcher launcher)
      Constructor.
      Parameters:
      launcher - the Launcher to undo/redo
  • Method Details

    • setLauncher

      public void setLauncher(Launcher launcher)
      Sets the launcher.
      Parameters:
      launcher - the Launcher to undo/redo
    • canReload

      public boolean canReload()
      Returns true if pending edit is a link edit.
      Returns:
      true if pending edit is a link edit
    • getLauncherState

      public String[] getLauncherState()
      Gets the current launcher state. Returns null if launcher is empty or if the current filename does not refer to an existing file.
      Returns:
      String array [0] = file name [1] = selected node path