|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mars.Settings
Contains various IDE settings. Persistent settings are maintained for the current user and on the current machine using Java's Preference objects. Failing that, default setting values come from Settings.properties file. If both of those fail, default values come from static arrays defined in this class. The latter can can be modified prior to instantiating Settings object. NOTE: If the Preference objects fail due to security exceptions, changes to settings will not carry over from one MARS session to the next.
Field Summary | |
static boolean[] |
defaultBooleanSettingsValues
Last resort default values for boolean settings; will use only if neither the Preferences nor the properties file work. |
static java.lang.String[] |
defaultStringSettingsValues
Last resort default values for String settings; will use only if neither the Preferences nor the properties file work. |
Constructor Summary | |
Settings()
Create Settings object and set to saved values. |
Method Summary | |
boolean |
getAssembleAllEnabled()
Setting for whether the assemble operation applies only to the file currently open in the editor or whether it applies to all files in that file's directory (primitive project capability). |
boolean |
getAssembleOnOpenEnabled()
Setting for whether selected program will be automatically assembled upon opening. |
boolean |
getBackSteppingEnabled()
Return whether backstepping is permitted at this time. |
boolean |
getBareMachineEnabled()
Setting for whether user programs limited to "bare machine" formatted basic instructions. |
boolean |
getDisplayAddressesInHex()
Setting for whether Addresses in the Execute pane will be displayed in hexadecimal. |
boolean |
getDisplayValuesInHex()
Setting for whether values in the Execute pane will be displayed in hexadecimal. |
java.lang.String |
getExceptionHandler()
Name of currently selected exception handler file. |
boolean |
getExceptionHandlerEnabled()
Setting for whether the currently selected exception handler (a MIPS source file) will be automatically included in each assemble operation. |
boolean |
getExtendedAssemblerEnabled()
Setting for whether user programs can use pseudo-instructions or extended addressing modes or alternative instruction formats (all are implemented as pseudo-instructions). |
boolean |
getLabelWindowVisibility()
Default concerning whether or not to display the Labels Window -- symbol table. |
void |
reset()
Reset settings to default values, as described in the constructor comments. |
void |
setAssembleAllEnabled(boolean value)
Establish setting for whether a file will be assembled by itself (false) or along with all other files in its directory (true). |
void |
setAssembleOnOpenEnabled(boolean value)
Establish setting for whether a file will be automatically assembled as soon as it is opened. |
void |
setDisplayAddressesInHex(boolean value)
Establish setting for whether addresses in the Execute pane will be displayed in hexadecimal format. |
void |
setDisplayValuesInHex(boolean value)
Establish setting for whether values in the Execute pane will be displayed in hexadecimal format. |
void |
setExceptionHandler(java.lang.String newFilename)
Set name of exception handler file and write it to settings properties file. |
void |
setExceptionHandlerEnabled(boolean value)
Establish setting for whether the currently selected exception handler (a MIPS source file) will be automatically included in each assemble operation. |
void |
setExtendedAssemblerEnabled(boolean value)
Establish setting for whether or not pseudo-instructions and formats are permitted in user programs. |
void |
setLabelWindowVisibility(boolean value)
Establish setting for whether the labels window (i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean[] defaultBooleanSettingsValues
public static java.lang.String[] defaultStringSettingsValues
Constructor Detail |
public Settings()
Method Detail |
public boolean getBackSteppingEnabled()
public void reset()
public boolean getBareMachineEnabled()
public boolean getExtendedAssemblerEnabled()
public boolean getAssembleOnOpenEnabled()
public boolean getDisplayAddressesInHex()
public boolean getDisplayValuesInHex()
public boolean getAssembleAllEnabled()
public boolean getExceptionHandlerEnabled()
public boolean getLabelWindowVisibility()
public java.lang.String getExceptionHandler()
public void setExtendedAssemblerEnabled(boolean value)
value
- True to permit, false otherwise.public void setAssembleOnOpenEnabled(boolean value)
value
- True to automatically assemble, false otherwise.public void setAssembleAllEnabled(boolean value)
value
- True to assemble all, false otherwise.public void setDisplayAddressesInHex(boolean value)
value
- True to display addresses in hexadecimal, false for decimal.public void setDisplayValuesInHex(boolean value)
value
- True to display values in hexadecimal, false for decimal.public void setLabelWindowVisibility(boolean value)
value
- True to dispay labels window, false otherwise.public void setExceptionHandlerEnabled(boolean value)
value
- True to assemble exception handler, false otherwisepublic void setExceptionHandler(java.lang.String newFilename)
newFilename
- name of exception handler file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |