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
Action
s which launch processes from the
ModuleManagerWindow
.- Since:
- 3.1.0
- Author:
- Joel Uckelman
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractLaunchAction.LaunchRequestMessage
protected class
AbstractLaunchAction.LaunchTask
static class
AbstractLaunchAction.NotifyImportModuleOk
protected static class
AbstractLaunchAction.NotifyImportModuleOkListener
static class
AbstractLaunchAction.NotifyNewModuleOk
protected static class
AbstractLaunchAction.NotifyNewModuleOkListener
static class
AbstractLaunchAction.NotifyOpenModuleFailed
protected static class
AbstractLaunchAction.NotifyOpenModuleFailedListener
static class
AbstractLaunchAction.NotifyOpenModuleOk
protected static class
AbstractLaunchAction.NotifyOpenModuleOkListener
static class
AbstractLaunchAction.NotifySaveFileOk
protected static class
AbstractLaunchAction.NotifySaveFileOkListener
-
Field Summary
Fields Modifier and Type Field Description protected static List<IPCMessenger>
children
protected static int
DEFAULT_INITIAL_HEAP
protected static int
DEFAULT_MAXIMUM_HEAP
protected static Set<File>
editing
protected String
entryPoint
protected static int
FAILSAFE_INITIAL_HEAP
protected static int
FAILSAFE_MAXIMUM_HEAP
protected LaunchRequest
lr
protected static AtomicInteger
nextId
protected static int
PHYS_MEMORY
protected static Map<File,Integer>
using
protected Window
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
Constructors Constructor Description AbstractLaunchAction(String name, Window window, String entryPoint, LaunchRequest lr)
-
Method Summary
Modifier and Type Method Description void
actionPerformed(ActionEvent e)
protected void
addFileFilters(FileChooser fc)
protected abstract AbstractLaunchAction.LaunchTask
getLaunchTask()
static boolean
isEditing(File file)
static boolean
isInUse(File file)
protected File
promptForFile()
static boolean
shutDown()
Ask child processes to close.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_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
-
entryPoint
-
lr
-
editing
-
using
-
children
-
nextId
-
-
Constructor Details
-
AbstractLaunchAction
-
-
Method Details
-
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
-
shutDown
public static boolean shutDown()Ask child processes to close.- Returns:
true
iff all child processes will terminate
-
actionPerformed
-
getLaunchTask
-
promptForFile
-
addFileFilters
-