Package VASSAL.launch

Class AbstractLaunchAction

java.lang.Object
javax.swing.AbstractAction
VASSAL.launch.AbstractLaunchAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
Editor.ImportLaunchAction, Editor.LaunchAction, Editor.NewModuleLaunchAction, LaunchTourAction, Player.LaunchAction

public abstract class AbstractLaunchAction
extends AbstractAction
The base class for Actions which launch processes from the ModuleManagerWindow.
Since:
3.1.0
Author:
Joel Uckelman
See Also:
Serialized Form
  • Field Details

    • PHYS_MEMORY

      protected static final int PHYS_MEMORY
    • DEFAULT_INITIAL_HEAP

      protected static final int DEFAULT_INITIAL_HEAP
      See Also:
      Constant Field Values
    • DEFAULT_MAXIMUM_HEAP

      protected static final int DEFAULT_MAXIMUM_HEAP
      See Also:
      Constant Field Values
    • FAILSAFE_INITIAL_HEAP

      protected static final int FAILSAFE_INITIAL_HEAP
      See Also:
      Constant Field Values
    • FAILSAFE_MAXIMUM_HEAP

      protected static final int FAILSAFE_MAXIMUM_HEAP
      See Also:
      Constant Field Values
    • window

      protected final Window window
    • entryPoint

      protected final String entryPoint
    • lr

      protected final LaunchRequest lr
    • editing

      protected static final Set<File> editing
    • using

      protected static final Map<File,​Integer> using
    • children

      protected static final List<IPCMessenger> children
    • nextId

      protected static final AtomicInteger nextId
  • Constructor Details

  • Method Details

    • isInUse

      public static boolean isInUse​(File file)
      Parameters:
      file - the file to check
      Returns:
      true iff the file is in use
    • isEditing

      public static boolean isEditing​(File file)
      Parameters:
      file - the file to check
      Returns:
      true iff the file is being edited
    • shutDown

      public static boolean shutDown()
      Ask child processes to close.
      Returns:
      true iff all child processes will terminate
    • actionPerformed

      public void actionPerformed​(ActionEvent e)
    • getLaunchTask

      protected abstract AbstractLaunchAction.LaunchTask getLaunchTask()
    • promptForFile

      protected File promptForFile()
    • addFileFilters

      protected void addFileFilters​(FileChooser fc)