Package org.omegat.core.data
Class RuntimePreferenceStore
java.lang.Object
org.omegat.core.data.RuntimePreferenceStore
Store runtime-only preference values, which shouldn't be saved to config
dir.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the directory path where the configuration is stored.static RuntimePreferenceStoreReturns the singleton instance.Returns the tokenizer source override for runtime.Returns the tokenizer target override for runtime.booleanbooleanisNoTeam()Checks if the noTeam flag is enabled.booleanbooleanChecks if the application is running in quiet mode.voidvoidSets the value of the alternate filename.voidOverride the configuration directory to the specified value.voidvoidEnables the noTeam mode by setting the internalnoTeamflag totrue.voidvoidsetQuietMode(boolean v) voidSets the tokenizer source override for runtime.voidSets the tokenizer target override for runtime.
-
Method Details
-
getInstance
Returns the singleton instance.- Returns:
- the instance
-
isQuietMode
public boolean isQuietMode()Checks if the application is running in quiet mode.- Returns:
trueif quiet mode is enabled,falseotherwise.
-
setQuietMode
public void setQuietMode(boolean v) -
getConfigDir
Returns the directory path where the configuration is stored.- Returns:
- the configuration directory as a string
-
setConfigDir
Override the configuration directory to the specified value.- Parameters:
v- the configuration directory path to set
-
isProjectLockingDisabled
public boolean isProjectLockingDisabled() -
setProjectLockingDisabled
public void setProjectLockingDisabled() -
isLocationSaveEnabled
public boolean isLocationSaveEnabled() -
setLocationSaveDisable
public void setLocationSaveDisable() -
isNoTeam
public boolean isNoTeam()Checks if the noTeam flag is enabled.- Returns:
trueif noTeam mode is active,falseotherwise
-
setNoTeam
public void setNoTeam()Enables the noTeam mode by setting the internalnoTeamflag totrue. This flag may be used to indicate that the application is operating without team-related features or configurations. -
setTokenizerSource
Sets the tokenizer source override for runtime.- Parameters:
v- the tokenizer source to set
-
getTokenizerSource
Returns the tokenizer source override for runtime.- Returns:
- the current tokenizer source as a string
-
setTokenizerTarget
Sets the tokenizer target override for runtime.- Parameters:
v- the tokenizer target to set
-
getTokenizerTarget
Returns the tokenizer target override for runtime.- Returns:
- the current tokenizer target as a string
-
getAlternateFilenameFrom
-
setAlternateFilenameFrom
-
getAlternateFilenameTo
-
setAlternateFilenameTo
Sets the value of the alternate filename.- Parameters:
v- the alternate filename
-