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 StringPath to the resources folder that contains action icons.static Assemblerstatic final StringMARS copyright holders.static final StringMARS copyright years.static booleanFlag to determine whether or not to produce internal debugging information.static intMARS 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 StringPath to the resources folder that contains help documentation.static final StringPath to the resources folder that contains images.static InstructionSetThe set of implemented MIPS instructions.static final intMaximum number of back-step operations to buffer.static final intMaximum number of assembler errors produced by one assemble operation.static final intMaximum length of scrolled message window (Messages and Console).static final StringThe name of the application.static final StringThe current MARS Red version number. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringRead ASCII default display character for non-printing characters, from properties file.static String[]Read ASCII strings for codes 0-255, from/config/values.propertiesunderAsciiTable.static StringgetConfigString(String key) Obtain a configuration string from/config/values.properties.static StringgetConfigString(String key, String defaultValue) Obtain a configuration string from/config/values.properties.static VenusUIgetGUI()static Settingsstatic voidMethod called once upon system initialization to create the global data structures.static voidstatic voidConfigure 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.propertiesunderAsciiTable. 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
nullif 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
defaultValueif it is not specified.
-