Package mars
Class Application
java.lang.Object
mars.Application
Collection of globally-available data structures.
- Author:
- Pete Sanderson, August 2003
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Path to the resources folder that contains action icons.static Assembler
static final String
MARS copyright holders.static final String
MARS copyright years.static boolean
Flag to determine whether or not to produce internal debugging information.static int
MARS exit code -- useful with syscall 17 when running from command line (not GUI).List of accepted file extensions for MIPS assembly source files.static final String
Path to the resources folder that contains help documentation.static final String
Path to the resources folder that contains images.static InstructionSet
The set of implemented MIPS instructions.static final int
Maximum number of back-step operations to buffer.static final int
Maximum number of assembler errors produced by one assemble operation.static final int
Maximum length of scrolled message window (Messages and Console).static final String
The name of the application.static final String
The current MARS Red version number. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Read ASCII default display character for non-printing characters, from properties file.static String[]
Read ASCII strings for codes 0-255, from/config/values.properties
underAsciiTable
.static String
getConfigString
(String key) Obtain a configuration string from/config/values.properties
.static String
getConfigString
(String key, String defaultValue) Obtain a configuration string from/config/values.properties
.static VenusUI
getGUI()
static Settings
static void
Method called once upon system initialization to create the global data structures.static void
static void
Configure the look and feel of the GUI according to application settings, refreshing the appearance of the GUI if it is already created.
-
Field Details
-
NAME
The name of the application.- See Also:
-
VERSION
The current MARS Red version number.- See Also:
-
COPYRIGHT_YEARS
MARS copyright years.- See Also:
-
COPYRIGHT_HOLDERS
MARS copyright holders.- See Also:
-
IMAGES_PATH
Path to the resources folder that contains images.- See Also:
-
ACTION_ICONS_PATH
Path to the resources folder that contains action icons.- See Also:
-
HELP_PATH
Path to the resources folder that contains help documentation.- See Also:
-
FILE_EXTENSIONS
List of accepted file extensions for MIPS assembly source files. -
MAXIMUM_MESSAGE_CHARACTERS
public static final int MAXIMUM_MESSAGE_CHARACTERSMaximum length of scrolled message window (Messages and Console). -
MAXIMUM_ERROR_MESSAGES
public static final int MAXIMUM_ERROR_MESSAGESMaximum number of assembler errors produced by one assemble operation. -
MAXIMUM_BACKSTEPS
public static final int MAXIMUM_BACKSTEPSMaximum number of back-step operations to buffer. -
exitCode
public static int exitCodeMARS exit code -- useful with syscall 17 when running from command line (not GUI). -
debug
public static boolean debugFlag to determine whether or not to produce internal debugging information. -
instructionSet
The set of implemented MIPS instructions. -
assembler
-
-
Constructor Details
-
Application
public Application()
-
-
Method Details
-
getGUI
-
setGUI
-
getSettings
-
initialize
public static void initialize()Method called once upon system initialization to create the global data structures. -
setupLookAndFeel
public static void setupLookAndFeel()Configure the look and feel of the GUI according to application settings, refreshing the appearance of the GUI if it is already created. -
getAsciiNonPrint
Read ASCII default display character for non-printing characters, from properties file. -
getAsciiTable
Read ASCII strings for codes 0-255, from/config/values.properties
underAsciiTable
. If a string isnull
, substitute value ofAsciiNonPrint
. If string isspace
, substitute string containing one space character. -
getConfigString
Obtain a configuration string from/config/values.properties
.- Parameters:
key
- The name of the configuration string to retrieve.- Returns:
- The configuration string requested, or
null
if it is not specified.
-
getConfigString
Obtain a configuration string from/config/values.properties
.- Parameters:
key
- The name of the configuration string to retrieve.defaultValue
- The default value to use if no string is found.- Returns:
- The configuration string requested, or
defaultValue
if it is not specified.
-