|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
mars.Settings
public class 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. Actual implementation of the Preference objects is platform-dependent. For Windows, they are stored in Registry. To see, run regedit and browse to: HKEY_CURRENT_USER\Software\JavaSoft\Prefs\mars
Field Summary | |
---|---|
static int |
ASSEMBLE_ALL_ENABLED
Flag to determine whether only the current editor source file (enabled false) or all files in its directory (enabled true) will be assembled when assembly is selected. |
static int |
ASSEMBLE_ON_OPEN_ENABLED
Flag to determine whether or not a file is immediately and automatically assembled upon opening. |
static int |
AUTO_INDENT
Flag to control whether or not language-aware editor will use auto-indent feature |
static int |
BARE_MACHINE_ENABLED
Flag to determine whether or not program being assembled is limited to using register numbers instead of names. |
static int |
CARET_BLINK_RATE
Caret blink rate in milliseconds, 0 means don't blink. |
static int |
DATA_SEGMENT_HIGHLIGHTING
Flag to control whether or not highlighting is applied to data segment window |
static int |
DATASEGMENT_HIGHLIGHT_BACKGROUND
RGB color for text segment highlighted background |
static int |
DATASEGMENT_HIGHLIGHT_FONT
Font for text segment highlighted background |
static int |
DATASEGMENT_HIGHLIGHT_FOREGROUND
RGB color for text segment highlighted foreground |
static boolean[] |
defaultBooleanSettingsValues
Last resort default values for boolean settings; will use only if neither the Preferences nor the properties file work. |
static int |
DELAYED_BRANCHING_ENABLED
Flag to determine whether or not delayed branching is in effect at MIPS execution. |
static int |
DISPLAY_ADDRESSES_IN_HEX
Default setting for displaying addresses and values in hexidecimal in the Execute pane. |
static int |
DISPLAY_VALUES_IN_HEX
|
static int |
EDITOR_CURRENT_LINE_HIGHLIGHTING
Flag to control whether or not editor will highlight the line currently being edited |
static int |
EDITOR_FONT
Font for the text editor |
static int |
EDITOR_LINE_NUMBERS_DISPLAYED
Flag to determine whether or not the editor will display line numbers. |
static int |
EDITOR_POPUP_PREFIX_LENGTH
Number of letters to be matched by editor's instruction guide before popup generated (if popup enabled) |
static int |
EDITOR_TAB_SIZE
Editor tab size in characters. |
static int |
EVEN_ROW_BACKGROUND
RGB color for table even row background (text, data, register displays) |
static int |
EVEN_ROW_FONT
Font for table even row background (text, data, register displays) |
static int |
EVEN_ROW_FOREGROUND
RGB color for table even row foreground (text, data, register displays) |
static int |
EXCEPTION_HANDLER
Current specified exception handler file (a MIPS assembly source file) |
static int |
EXCEPTION_HANDLER_ENABLED
Flag to determine whether the currently selected exception handler source file will be included in each assembly operation. |
static int |
EXTENDED_ASSEMBLER_ENABLED
Flag to determine whether or not program being assembled is limited to basic MIPS instructions and formats. |
static int |
GENERIC_TEXT_EDITOR
Flag to control whether or not to use generic text editor instead of language-aware styled editor |
static int |
LABEL_SORT_STATE
State for sorting label window display |
static int |
LABEL_WINDOW_VISIBILITY
Default visibilty of label window (symbol table). |
static int |
MEMORY_CONFIGURATION
Identifier of current memory configuration |
static int |
ODD_ROW_BACKGROUND
RGB color for table odd row background (text, data, register displays) |
static int |
ODD_ROW_FONT
Font for table odd row background (text, data, register displays) |
static int |
ODD_ROW_FOREGROUND
RGB color for table odd row foreground (text, data, register displays) |
static int |
POPUP_INSTRUCTION_GUIDANCE
Flag to control whether or not editor will provide popup instruction guidance while typing |
static int |
POPUP_SYSCALL_INPUT
Flag to control whether or not simulator will use popup dialog for input syscalls |
static int |
PROGRAM_ARGUMENTS
Flag to determine whether or not to display and use program arguments |
static int |
REGISTER_HIGHLIGHT_BACKGROUND
RGB color for register highlighted background |
static int |
REGISTER_HIGHLIGHT_FONT
Font for register highlighted background |
static int |
REGISTER_HIGHLIGHT_FOREGROUND
RGB color for register highlighted foreground |
static int |
REGISTERS_HIGHLIGHTING
Flag to control whether or not highlighting is applied to register windows |
static int |
SELF_MODIFYING_CODE_ENABLED
Flag to determine whether a program can write binary code to the text or data segment and execute that code. |
static int |
START_AT_MAIN
Flag to control whether or not assembler automatically initializes program counter to 'main's address |
static int |
TEXT_COLUMN_ORDER
Order of text segment table columns |
static int |
TEXTSEGMENT_DELAYSLOT_HIGHLIGHT_BACKGROUND
RGB color for text segment delay slot highlighted background |
static int |
TEXTSEGMENT_DELAYSLOT_HIGHLIGHT_FONT
Font for text segment delay slot highlighted background |
static int |
TEXTSEGMENT_DELAYSLOT_HIGHLIGHT_FOREGROUND
RGB color for text segment delay slot highlighted foreground |
static int |
TEXTSEGMENT_HIGHLIGHT_BACKGROUND
RGB color for text segment highlighted background |
static int |
TEXTSEGMENT_HIGHLIGHT_FONT
Font for table odd row foreground (text, data, register displays) |
static int |
TEXTSEGMENT_HIGHLIGHT_FOREGROUND
RGB color for text segment highlighted foreground |
static int |
WARNINGS_ARE_ERRORS
Flag to determine whether or not assembler warnings are considered errors. |
Constructor Summary | |
---|---|
Settings()
Create Settings object and set to saved values. |
|
Settings(boolean gui)
Create Settings object and set to saved values. |
Method Summary | |
---|---|
boolean |
getAssembleAllEnabled()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.ASSEMBLE_ALL_ENABLED ) |
boolean |
getAssembleOnOpenEnabled()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.ASSEMBLE_ON_OPEN_ENABLED ) |
boolean |
getBackSteppingEnabled()
Return whether backstepping is permitted at this time. |
boolean |
getBareMachineEnabled()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.BARE_MACHINE_ENABLED ) |
boolean |
getBooleanSetting(int id)
Fetch value of a boolean setting given its identifier. |
int |
getCaretBlinkRate()
Retrieve the caret blink rate in milliseconds. |
Color |
getColorSettingByKey(String key)
Get Color object for specified settings key. |
Color |
getColorSettingByPosition(int position)
Get Color object for specified settings name (a static constant). |
boolean |
getDataSegmentHighlighting()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.DATA_SEGMENT_HIGHLIGHTING ) |
Color |
getDefaultColorSettingByKey(String key)
Get default Color value for specified settings key. |
Color |
getDefaultColorSettingByPosition(int position)
Get default Color object for specified settings name (a static constant). |
SyntaxStyle |
getDefaultEditorSyntaxStyleByPosition(int index)
|
int |
getDefaultEditorTabSize()
Get the text editor default tab size in characters |
Font |
getDefaultFontByPosition(int fontSettingPosition)
Retrieve a default Font setting |
boolean |
getDelayedBranchingEnabled()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.DELAYED_BRANCHING_ENABLED ) |
boolean |
getDisplayAddressesInHex()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.DISPLAY_ADDRESSES_IN_HEX ) |
boolean |
getDisplayValuesInHex()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.DISPLAY_VALUES_IN_HEX ) |
Font |
getEditorFont()
Current editor font. |
boolean |
getEditorLineNumbersDisplayed()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.EDITOR_LINE_NUMBERS_DISPLAYED ) |
int |
getEditorPopupPrefixLength()
Get number of letters to be matched by editor's instruction guide before popup generated (if popup enabled). |
SyntaxStyle |
getEditorSyntaxStyleByPosition(int index)
|
int |
getEditorTabSize()
Get the tab size in characters. |
String |
getExceptionHandler()
Name of currently selected exception handler file. |
boolean |
getExceptionHandlerEnabled()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.EXCEPTION_HANDLER_ENABLED ) |
boolean |
getExtendedAssemblerEnabled()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.EXTENDED_ASSEMBLER_ENABLED ) |
Font |
getFontByPosition(int fontSettingPosition)
Retrieve a Font setting |
String |
getLabelSortState()
Get the saved state of the Labels Window sorting (can sort by either label or address and either ascending or descending order). |
boolean |
getLabelWindowVisibility()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.LABEL_WINDOW_VISIBILITY ) |
String |
getMemoryConfiguration()
Returns identifier of current built-in memory configuration. |
boolean |
getProgramArguments()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.PROGRAM_ARGUMENTS ) |
boolean |
getRegistersHighlighting()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.REGISTERS_HIGHLIGHTING ) |
boolean |
getStartAtMain()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.START_AT_MAIN ) |
int[] |
getTextColumnOrder()
Order of text segment display columns (there are 5, numbered 0 to 4). |
boolean |
getWarningsAreErrors()
Deprecated. Use getBooleanSetting(int id) with the appropriate boolean setting ID
(e.g. Settings.WARNINGS_ARE_ERRORS ) |
void |
reset(boolean gui)
Reset settings to default values, as described in the constructor comments. |
void |
setAssembleAllEnabled(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.ASSEMBLE_ALL_ENABLED ) |
void |
setAssembleOnOpenEnabled(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.ASSEMBLE_ON_OPEN_ENABLED ) |
void |
setBooleanSetting(int id,
boolean value)
Set value of a boolean setting given its id and the value. |
void |
setBooleanSettingNonPersistent(int id,
boolean value)
Temporarily establish boolean setting. |
void |
setCaretBlinkRate(int rate)
Set the caret blinking rate in milliseconds. |
void |
setColorSettingByKey(String key,
Color color)
Set Color object for specified settings key. |
void |
setColorSettingByPosition(int position,
Color color)
Set Color object for specified settings name (a static constant). |
void |
setDataSegmentHighlighting(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.DATA_SEGMENT_HIGHLIGHTING ) |
void |
setDelayedBranchingEnabled(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.DELAYED_BRANCHING_ENABLED ) |
void |
setDelayedBranchingEnabledNonPersistent(boolean value)
Deprecated. Use setBooleanSettingNonPersistent(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.DELAYED_BRANCHING_ENABLED ) |
void |
setDisplayAddressesInHex(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.DISPLAY_ADDRESSES_IN_HEX ) |
void |
setDisplayValuesInHex(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.DISPLAY_VALUES_IN_HEX ) |
void |
setEditorFont(Font font)
Set editor font to the specified Font object and write it to persistent storage. |
void |
setEditorLineNumbersDisplayed(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.EDITOR_LINE_NUMBERS_DISPLAYED ) |
void |
setEditorPopupPrefixLength(int length)
Set number of letters to be matched by editor's instruction guide before popup generated (if popup enabled). |
void |
setEditorSyntaxStyleByPosition(int index,
SyntaxStyle syntaxStyle)
|
void |
setEditorTabSize(int size)
Set the tab size in characters. |
void |
setExceptionHandler(String newFilename)
Set name of exception handler file and write it to persistent storage. |
void |
setExceptionHandlerEnabled(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.EXCEPTION_HANDLER_ENABLED ) |
void |
setExtendedAssemblerEnabled(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.EXTENDED_ASSEMBLER_ENABLED ) |
void |
setFontByPosition(int fontSettingPosition,
Font font)
Store a Font setting |
void |
setLabelSortState(String state)
Store the current state of the Labels Window sorter. |
void |
setLabelWindowVisibility(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.LABEL_WINDOW_VISIBILITY ) |
void |
setMemoryConfiguration(String config)
Store the identifier of the memory configuration. |
void |
setProgramArguments(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.PROGRAM_ARGUMENTS ) |
void |
setRegistersHighlighting(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.REGISTERS_HIGHLIGHTING ) |
void |
setStartAtMain(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.START_AT_MAIN ) |
void |
setTextColumnOrder(int[] columnOrder)
Store the current order of Text Segment window table columns, so the ordering can be preserved and restored. |
void |
setWarningsAreErrors(boolean value)
Deprecated. Use setBooleanSetting(int id, boolean value) with the appropriate boolean setting ID
(e.g. Settings.WARNINGS_ARE_ERRORS ) |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EXTENDED_ASSEMBLER_ENABLED
public static final int BARE_MACHINE_ENABLED
public static final int ASSEMBLE_ON_OPEN_ENABLED
public static final int ASSEMBLE_ALL_ENABLED
public static final int LABEL_WINDOW_VISIBILITY
public static final int DISPLAY_ADDRESSES_IN_HEX
public static final int DISPLAY_VALUES_IN_HEX
public static final int EXCEPTION_HANDLER_ENABLED
public static final int DELAYED_BRANCHING_ENABLED
public static final int EDITOR_LINE_NUMBERS_DISPLAYED
public static final int WARNINGS_ARE_ERRORS
public static final int PROGRAM_ARGUMENTS
public static final int DATA_SEGMENT_HIGHLIGHTING
public static final int REGISTERS_HIGHLIGHTING
public static final int START_AT_MAIN
public static final int EDITOR_CURRENT_LINE_HIGHLIGHTING
public static final int POPUP_INSTRUCTION_GUIDANCE
public static final int POPUP_SYSCALL_INPUT
public static final int GENERIC_TEXT_EDITOR
public static final int AUTO_INDENT
public static final int SELF_MODIFYING_CODE_ENABLED
public static boolean[] defaultBooleanSettingsValues
public static final int EXCEPTION_HANDLER
public static final int TEXT_COLUMN_ORDER
public static final int LABEL_SORT_STATE
public static final int MEMORY_CONFIGURATION
public static final int CARET_BLINK_RATE
public static final int EDITOR_TAB_SIZE
public static final int EDITOR_POPUP_PREFIX_LENGTH
public static final int EDITOR_FONT
public static final int EVEN_ROW_FONT
public static final int ODD_ROW_FONT
public static final int TEXTSEGMENT_HIGHLIGHT_FONT
public static final int TEXTSEGMENT_DELAYSLOT_HIGHLIGHT_FONT
public static final int DATASEGMENT_HIGHLIGHT_FONT
public static final int REGISTER_HIGHLIGHT_FONT
public static final int EVEN_ROW_BACKGROUND
public static final int EVEN_ROW_FOREGROUND
public static final int ODD_ROW_BACKGROUND
public static final int ODD_ROW_FOREGROUND
public static final int TEXTSEGMENT_HIGHLIGHT_BACKGROUND
public static final int TEXTSEGMENT_HIGHLIGHT_FOREGROUND
public static final int TEXTSEGMENT_DELAYSLOT_HIGHLIGHT_BACKGROUND
public static final int TEXTSEGMENT_DELAYSLOT_HIGHLIGHT_FOREGROUND
public static final int DATASEGMENT_HIGHLIGHT_BACKGROUND
public static final int DATASEGMENT_HIGHLIGHT_FOREGROUND
public static final int REGISTER_HIGHLIGHT_BACKGROUND
public static final int REGISTER_HIGHLIGHT_FOREGROUND
Constructor Detail |
---|
public Settings()
public Settings(boolean gui)
gui
- true if running the graphical IDE, false if running from command line.
Ignored as of release 3.6 but retained for compatability.Method Detail |
---|
public boolean getBackSteppingEnabled()
public void reset(boolean gui)
gui
- true if running from GUI IDE and false if running from command mode.
Ignored as of release 3.6 but retained for compatibility.public void setEditorSyntaxStyleByPosition(int index, SyntaxStyle syntaxStyle)
public SyntaxStyle getEditorSyntaxStyleByPosition(int index)
public SyntaxStyle getDefaultEditorSyntaxStyleByPosition(int index)
public boolean getBooleanSetting(int id)
id
- int containing the setting's identifier (constants listed above)
IllegalArgumentException
- if identifier is invalid.public boolean getBareMachineEnabled()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.BARE_MACHINE_ENABLED
)
public boolean getExtendedAssemblerEnabled()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.EXTENDED_ASSEMBLER_ENABLED
)
public boolean getAssembleOnOpenEnabled()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.ASSEMBLE_ON_OPEN_ENABLED
)
public boolean getDisplayAddressesInHex()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.DISPLAY_ADDRESSES_IN_HEX
)
public boolean getDisplayValuesInHex()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.DISPLAY_VALUES_IN_HEX
)
public boolean getAssembleAllEnabled()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.ASSEMBLE_ALL_ENABLED
)
public boolean getExceptionHandlerEnabled()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.EXCEPTION_HANDLER_ENABLED
)
public boolean getDelayedBranchingEnabled()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.DELAYED_BRANCHING_ENABLED
)
public boolean getLabelWindowVisibility()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.LABEL_WINDOW_VISIBILITY
)
public boolean getEditorLineNumbersDisplayed()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.EDITOR_LINE_NUMBERS_DISPLAYED
)
public boolean getWarningsAreErrors()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.WARNINGS_ARE_ERRORS
)
public boolean getProgramArguments()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.PROGRAM_ARGUMENTS
)
public boolean getDataSegmentHighlighting()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.DATA_SEGMENT_HIGHLIGHTING
)
public boolean getRegistersHighlighting()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.REGISTERS_HIGHLIGHTING
)
public boolean getStartAtMain()
getBooleanSetting(int id)
with the appropriate boolean setting ID
(e.g. Settings.START_AT_MAIN
)
public String getExceptionHandler()
public String getMemoryConfiguration()
public Font getEditorFont()
public Font getFontByPosition(int fontSettingPosition)
fontSettingPosition
- constant that identifies which item
public Font getDefaultFontByPosition(int fontSettingPosition)
fontSettingPosition
- constant that identifies which item
public int[] getTextColumnOrder()
public int getCaretBlinkRate()
public int getEditorTabSize()
public int getEditorPopupPrefixLength()
public int getDefaultEditorTabSize()
public String getLabelSortState()
public Color getColorSettingByKey(String key)
key
- the Setting key
public Color getDefaultColorSettingByKey(String key)
key
- the Setting key
public Color getColorSettingByPosition(int position)
position
- the Setting name (see list of static constants)
public Color getDefaultColorSettingByPosition(int position)
position
- the Setting name (see list of static constants)
public void setBooleanSetting(int id, boolean value)
id
- int containing the setting's identifier (constants listed above)value
- boolean value to store
IllegalArgumentException
- if identifier is not valid.public void setExtendedAssemblerEnabled(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.EXTENDED_ASSEMBLER_ENABLED
)
value
- True to permit, false otherwise.public void setAssembleOnOpenEnabled(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.ASSEMBLE_ON_OPEN_ENABLED
)
value
- True to automatically assemble, false otherwise.public void setAssembleAllEnabled(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.ASSEMBLE_ALL_ENABLED
)
value
- True to assemble all, false otherwise.public void setDisplayAddressesInHex(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.DISPLAY_ADDRESSES_IN_HEX
)
value
- True to display addresses in hexadecimal, false for decimal.public void setDisplayValuesInHex(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.DISPLAY_VALUES_IN_HEX
)
value
- True to display values in hexadecimal, false for decimal.public void setLabelWindowVisibility(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.LABEL_WINDOW_VISIBILITY
)
value
- True to dispay labels window, false otherwise.public void setExceptionHandlerEnabled(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.EXCEPTION_HANDLER_ENABLED
)
value
- True to assemble exception handler, false otherwise.public void setDelayedBranchingEnabled(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.DELAYED_BRANCHING_ENABLED
)
value
- True to enable delayed branching, false otherwise.public void setEditorLineNumbersDisplayed(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.EDITOR_LINE_NUMBERS_DISPLAYED
)
value
- True to display line numbers, false otherwise.public void setWarningsAreErrors(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.WARNINGS_ARE_ERRORS
)
value
- True to consider warnings to be errors, false otherwise.public void setProgramArguments(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.PROGRAM_ARGUMENTS
)
value
- True if program arguments can be entered/used, false otherwise.public void setDataSegmentHighlighting(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.DATA_SEGMENT_HIGHLIGHTING
)
value
- True if highlighting is to be applied, false otherwise.public void setRegistersHighlighting(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.REGISTERS_HIGHLIGHTING
)
value
- True if highlighting is to be applied, false otherwise.public void setStartAtMain(boolean value)
setBooleanSetting(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.START_AT_MAIN
)
value
- True if PC set to address of 'main', false otherwise.public void setBooleanSettingNonPersistent(int id, boolean value)
id
- setting identifier. These are defined for this class as static final int.value
- True to enable the setting, false otherwise.public void setDelayedBranchingEnabledNonPersistent(boolean value)
setBooleanSettingNonPersistent(int id, boolean value)
with the appropriate boolean setting ID
(e.g. Settings.DELAYED_BRANCHING_ENABLED
)
value
- True to enabled delayed branching, false otherwise.public void setExceptionHandler(String newFilename)
newFilename
- name of exception handler filepublic void setMemoryConfiguration(String config)
config
- A string that identifies the current built-in memory configurationpublic void setCaretBlinkRate(int rate)
rate
- blink rate in millisecondspublic void setEditorTabSize(int size)
size
- tab size in characters.public void setEditorPopupPrefixLength(int length)
number
- of letters (should be 1 or 2).public void setEditorFont(Font font)
font
- Font object to be used by text editor.public void setFontByPosition(int fontSettingPosition, Font font)
fontSettingPosition
- Constant that identifies the item the font goes withpublic void setTextColumnOrder(int[] columnOrder)
columnOrder
- An array of int indicating column order.public void setLabelSortState(String state)
state
- The current labels window sorting state, as a String.public void setColorSettingByKey(String key, Color color)
key
- the Setting keycolor
- the Color to savepublic void setColorSettingByPosition(int position, Color color)
position
- the Setting name (see list of static constants)color
- the Color to save
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |