Package jmri.jmrit.logixng
Interface LogixNGPreferences
- All Known Implementing Classes:
DefaultLogixNGPreferences
public interface LogixNGPreferences
Preferences for LogixNG
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(LogixNGPreferences prefs) Apply other preferences to this classbooleanCompare if the values are different from the other preferences.Get the default error handling type.Get the default execute type for IfThenElse.booleanGet whenether the debugger should be installed or nog.booleanGet log all after.booleanGet log all before.booleanGet whether system names should be shown or not in exceptions.booleanGet whenether system names and user names should be visible for actions and expressions.booleanGet whenether LogixNG should be started when the program starts or a panel is loaded.booleanGet whenether strict typing should be used for global variables.booleanGet whenether strict typing should be used for local variables.booleanGet whether row in tree editor should be highlighted or not.voidsave()Save the preferencesvoidSet the default error handling type.voidSet the default execute type for IfThenElse.voidsetInstallDebugger(boolean value) Set whenether the debugger should be installed or nog.voidsetLogAllAfter(boolean value) Set log all after.voidsetLogAllBefore(boolean value) Set log all before.voidsetShowSystemNameInException(boolean value) Set whether system names should be shown or not in exceptions.voidsetShowSystemUserNames(boolean value) Set whenether system names and user names should be visible for actions and expressions.voidsetStartLogixNGOnStartup(boolean value) Set whenether LogixNG should be started when the program starts or a panel is loaded.voidsetStrictTypingGlobalVariables(boolean value) Set whenether strict typing should be used for global variables.voidsetStrictTypingLocalVariables(boolean value) Set whenether strict typing should be used for local variables.voidsetTreeEditorHighlightRow(boolean value) Set whether row in tree editor should be highlighted or not.
-
Method Details
-
compareValuesDifferent
Compare if the values are different from the other preferences.- Parameters:
prefs- the other preferences to check- Returns:
- true if preferences differ, false otherwise
-
apply
Apply other preferences to this class- Parameters:
prefs- the other preferences
-
save
void save()Save the preferences -
setStartLogixNGOnStartup
Set whenether LogixNG should be started when the program starts or a panel is loaded.- Parameters:
value- true if LogixNG should start on program start or when a panel is loaded, false otherwise
-
getStartLogixNGOnStartup
boolean getStartLogixNGOnStartup()Get whenether LogixNG should be started when the program starts or a panel is loaded.- Returns:
- true if LogixNG should start on program start or when a panel is loaded, false otherwise
-
setShowSystemUserNames
Set whenether system names and user names should be visible for actions and expressions.- Parameters:
value- true if names should be visible, false otherwise
-
getShowSystemUserNames
boolean getShowSystemUserNames()Get whenether system names and user names should be visible for actions and expressions.- Returns:
- true if names should be visible, false otherwise
-
setInstallDebugger
Set whenether the debugger should be installed or nog.- Parameters:
value- true if the debugger should be installed, false otherwise
-
getInstallDebugger
boolean getInstallDebugger()Get whenether the debugger should be installed or nog.- Returns:
- true if the debugger should be installed, false otherwise
-
setErrorHandlingType
Set the default error handling type.- Parameters:
type- the error handling type
-
getErrorHandlingType
Get the default error handling type.- Returns:
- the error handling type
-
setTreeEditorHighlightRow
Set whether row in tree editor should be highlighted or not.- Parameters:
value- true if the row should be highlighted, false otherwise
-
getTreeEditorHighlightRow
boolean getTreeEditorHighlightRow()Get whether row in tree editor should be highlighted or not.- Returns:
- true if the row should be highlighted, false otherwise
-
setShowSystemNameInException
Set whether system names should be shown or not in exceptions.- Parameters:
value- true if system names should be shown, false otherwise
-
getShowSystemNameInException
boolean getShowSystemNameInException()Get whether system names should be shown or not in exceptions.- Returns:
- true if the system names should be shown, false otherwise
-
setStrictTypingGlobalVariables
Set whenether strict typing should be used for global variables.- Parameters:
value- true if strict typing should be used for global variables, false otherwise
-
getStrictTypingGlobalVariables
boolean getStrictTypingGlobalVariables()Get whenether strict typing should be used for global variables.- Returns:
- true if strict typing should be used for global variables, false otherwise
-
setStrictTypingLocalVariables
Set whenether strict typing should be used for local variables.- Parameters:
value- true if strict typing should be used for local variables, false otherwise
-
getStrictTypingLocalVariables
boolean getStrictTypingLocalVariables()Get whenether strict typing should be used for local variables.- Returns:
- true if strict typing should be used for local variables, false otherwise
-
setIfThenElseExecuteTypeDefault
Set the default execute type for IfThenElse.- Parameters:
value- the default
-
getIfThenElseExecuteTypeDefault
Get the default execute type for IfThenElse.- Returns:
- the default
-
setLogAllBefore
Set log all before.- Parameters:
value- true if log all before, false otherwise
-
getLogAllBefore
boolean getLogAllBefore()Get log all before.- Returns:
- true if log all before, false otherwise
-
setLogAllAfter
Set log all after.- Parameters:
value- true if log all after, false otherwise
-
getLogAllAfter
boolean getLogAllAfter()Get log all after.- Returns:
- true if log all after, false otherwise
-