Class RuntimePreferenceStore

java.lang.Object
org.omegat.core.data.RuntimePreferenceStore

public class RuntimePreferenceStore extends Object
Store runtime-only preference values, which shouldn't be saved to config dir.
  • Method Details

    • getInstance

      public static RuntimePreferenceStore getInstance()
      Returns the singleton instance.
      Returns:
      the instance
    • isQuietMode

      public boolean isQuietMode()
      Checks if the application is running in quiet mode.
      Returns:
      true if quiet mode is enabled, false otherwise.
    • setQuietMode

      public void setQuietMode(boolean v)
    • getConfigDir

      public String getConfigDir()
      Returns the directory path where the configuration is stored.
      Returns:
      the configuration directory as a string
    • setConfigDir

      public void setConfigDir(String v)
      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:
      true if noTeam mode is active, false otherwise
    • setNoTeam

      public void setNoTeam()
      Enables the noTeam mode by setting the internal noTeam flag to true. This flag may be used to indicate that the application is operating without team-related features or configurations.
    • setTokenizerSource

      public void setTokenizerSource(String v)
      Sets the tokenizer source override for runtime.
      Parameters:
      v - the tokenizer source to set
    • getTokenizerSource

      public String getTokenizerSource()
      Returns the tokenizer source override for runtime.
      Returns:
      the current tokenizer source as a string
    • setTokenizerTarget

      public void setTokenizerTarget(String v)
      Sets the tokenizer target override for runtime.
      Parameters:
      v - the tokenizer target to set
    • getTokenizerTarget

      public String getTokenizerTarget()
      Returns the tokenizer target override for runtime.
      Returns:
      the current tokenizer target as a string
    • getAlternateFilenameFrom

      public String getAlternateFilenameFrom()
    • setAlternateFilenameFrom

      public void setAlternateFilenameFrom(String v)
    • getAlternateFilenameTo

      public String getAlternateFilenameTo()
    • setAlternateFilenameTo

      public void setAlternateFilenameTo(String v)
      Sets the value of the alternate filename.
      Parameters:
      v - the alternate filename