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_MAXIMUM_HEAP

      protected static final int DEFAULT_MAXIMUM_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
    • using

      protected static final Map<File,​Integer> using
  • 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
    • incrementUsed

      protected static void incrementUsed(File file)
    • decrementUsed

      protected static void decrementUsed(File file)
    • markEditing

      protected static void markEditing(File file)
    • unmarkEditing

      protected static void unmarkEditing(File file)
    • actionPerformed

      public void actionPerformed(ActionEvent e)
    • getLaunchTask

      protected abstract AbstractLaunchAction.LaunchTask getLaunchTask()
    • promptForFile

      protected File promptForFile()
    • addFileFilters

      protected void addFileFilters(FileChooser fc)