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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractLaunchAction.LaunchRequestMessageprotected classAbstractLaunchAction.LaunchTaskstatic classAbstractLaunchAction.NotifyImportModuleOkprotected static classAbstractLaunchAction.NotifyImportModuleOkListenerstatic classAbstractLaunchAction.NotifyNewModuleOkprotected static classAbstractLaunchAction.NotifyNewModuleOkListenerstatic classAbstractLaunchAction.NotifyOpenModuleFailedprotected static classAbstractLaunchAction.NotifyOpenModuleFailedListenerstatic classAbstractLaunchAction.NotifyOpenModuleOkprotected static classAbstractLaunchAction.NotifyOpenModuleOkListenerstatic classAbstractLaunchAction.NotifySaveFileOkprotected static classAbstractLaunchAction.NotifySaveFileOkListener -
Field Summary
Fields Modifier and Type Field Description protected static List<IPCMessenger>childrenprotected static intDEFAULT_INITIAL_HEAPprotected static intDEFAULT_MAXIMUM_HEAPprotected static Set<File>editingprotected StringentryPointprotected static intFAILSAFE_INITIAL_HEAPprotected static intFAILSAFE_MAXIMUM_HEAPprotected LaunchRequestlrprotected static AtomicIntegernextIdprotected static intPHYS_MEMORYprotected static Map<File,Integer>usingprotected WindowwindowFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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 voidactionPerformed(ActionEvent e)protected voidaddFileFilters(FileChooser fc)protected abstract AbstractLaunchAction.LaunchTaskgetLaunchTask()static booleanisEditing(File file)static booleanisInUse(File file)protected FilepromptForFile()static booleanshutDown()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:
trueiff the file is in use
-
isEditing
- Parameters:
file- the file to check- Returns:
trueiff the file is being edited
-
shutDown
public static boolean shutDown()Ask child processes to close.- Returns:
trueiff all child processes will terminate
-
actionPerformed
-
getLaunchTask
-
promptForFile
-
addFileFilters
-