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
The base class for
Action
s which launch processes from the
ModuleManagerWindow
.- Since:
- 3.1.0
- Author:
- Joel Uckelman
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected final String
protected static final int
protected final LaunchRequest
protected static final int
protected final Window
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorDescriptionAbstractLaunchAction
(String name, Window window, String entryPoint, LaunchRequest lr) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
static boolean
anyInUse()
protected boolean
protected static void
decrementUsed
(File file) protected abstract AbstractLaunchAction.LaunchTask
static UseTracker
protected static void
incrementUsed
(File file) static boolean
static boolean
protected static void
markEditing
(File file) protected File
protected static void
unmarkEditing
(File file) Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
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
-
entryPoint
-
lr
-
-
Constructor Details
-
AbstractLaunchAction
-
-
Method Details
-
getUseTracker
-
anyInUse
public static boolean anyInUse()- Returns:
true
iff any files are in use
-
isInUse
- Parameters:
file
- the file to check- Returns:
true
iff the file is in use
-
isEditing
- Parameters:
file
- the file to check- Returns:
true
iff the file is being edited
-
incrementUsed
-
decrementUsed
-
markEditing
-
unmarkEditing
-
actionPerformed
-
getLaunchTask
-
promptForFile
-
addFileFilters
-
checkRemovedAndDeprecated
- Throws:
IOException
-