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:
  • Field Details

    • PHYS_MEMORY

      protected static final int PHYS_MEMORY
    • DEFAULT_MAXIMUM_HEAP

      public static final int DEFAULT_MAXIMUM_HEAP
      See Also:
    • FAILSAFE_MAXIMUM_HEAP

      protected static final int FAILSAFE_MAXIMUM_HEAP
      See Also:
    • window

      protected final Window window
    • entryPoint

      protected final String entryPoint
    • lr

      protected final LaunchRequest lr
  • Constructor Details

  • Method Details

    • getUseTracker

      public static UseTracker getUseTracker()
    • anyInUse

      public static boolean anyInUse()
      Returns:
      true iff any files are in use
    • 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)
    • checkRemovedAndDeprecated

      protected boolean checkRemovedAndDeprecated(File f) throws IOException
      Throws:
      IOException