public final class Preferences
extends java.lang.Object
Initially this class was implemented with static members and methods directly implementing the interface, backed by XML storage. However this was bad for testing and extensibility, or allowing different persistence formats.
This class's static methods remain for compatibility, but now they wrap a
singleton instance of a concrete implementation of Preferences.IPreferences
.
Modifier and Type | Class and Description |
---|---|
static interface |
Preferences.IPreferences |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AC_AUTOTEXT_ENABLED
autotext auto-completion
|
static boolean |
AC_AUTOTEXT_ENABLED_DEFAULT |
static java.lang.String |
AC_AUTOTEXT_SORT_ALPHABETICALLY |
static java.lang.String |
AC_AUTOTEXT_SORT_BY_LENGTH |
static java.lang.String |
AC_AUTOTEXT_SORT_FULL_TEXT |
static java.lang.String |
AC_CHARTABLE_CUSTOM_CHAR_STRING |
static java.lang.String |
AC_CHARTABLE_ENABLED
char table auto-completion
|
static boolean |
AC_CHARTABLE_ENABLED_DEFAULT |
static java.lang.String |
AC_CHARTABLE_UNIQUE_CUSTOM_CHARS |
static java.lang.String |
AC_CHARTABLE_USE_CUSTOM_CHARS |
static java.lang.String |
AC_GLOSSARY_CAPITALIZE |
static java.lang.String |
AC_GLOSSARY_ENABLED
glossary auto-completion
|
static boolean |
AC_GLOSSARY_ENABLED_DEFAULT |
static java.lang.String |
AC_GLOSSARY_SHOW_SOURCE |
static java.lang.String |
AC_GLOSSARY_SHOW_TARGET_BEFORE_SOURCE |
static java.lang.String |
AC_GLOSSARY_SORT_ALPHABETICALLY |
static java.lang.String |
AC_GLOSSARY_SORT_BY_LENGTH |
static java.lang.String |
AC_GLOSSARY_SORT_BY_SOURCE |
static java.lang.String |
AC_HISTORY_COMPLETION_ENABLED
history completion and prediction
|
static java.lang.String |
AC_HISTORY_PREDICTION_ENABLED |
static java.lang.String |
AC_SHOW_SUGGESTIONS_AUTOMATICALLY |
static java.lang.String |
AC_SWITCH_VIEWS_WITH_LR |
static java.lang.String |
ALIGNER_HIGHLIGHT_PATTERN
Aligner settings
|
static java.lang.String |
ALIGNER_HIGHLIGHT_PATTERN_DEFAULT |
static java.lang.String |
ALLOW_APERTIUM_TRANSLATE |
static java.lang.String |
ALLOW_AUTO_SPELLCHECKING
allow automatic spell checking or not
|
static java.lang.String |
ALLOW_BELAZAR_TRANSLATE |
static java.lang.String |
ALLOW_DEEPL_TRANSLATE |
static java.lang.String |
ALLOW_GOOGLE_TRANSLATE |
static java.lang.String |
ALLOW_GOOGLE2_TRANSLATE |
static java.lang.String |
ALLOW_IBMWATSON_TRANSLATE |
static java.lang.String |
ALLOW_MICROSOFT_TRANSLATOR_AZURE |
static java.lang.String |
ALLOW_MOSES_TRANSLATE |
static java.lang.String |
ALLOW_MYMEMORY_HUMAN_TRANSLATE |
static java.lang.String |
ALLOW_MYMEMORY_MACHINE_TRANSLATE |
static java.lang.String |
ALLOW_PROJECT_EXTERN_CMD
Allow per-project external commands
|
static java.lang.String |
ALLOW_TAG_EDITING
Tag Validation Option: allow tag editing in editor.
|
static java.lang.String |
ALLOW_TRANS_EQUAL_TO_SRC
Workflow Option: Allow translation to be equal to source
|
static java.lang.String |
ALLOW_YANDEX_CLOUD_TRANSLATE |
static java.lang.String |
ALWAYS_CONFIRM_QUIT
Always confirm Quit, even if the project is saved
|
static int |
AUTO_SAVE_DEFAULT
Default number of seconds to auto save project
|
static java.lang.String |
AUTO_SAVE_INTERVAL
Automatic save interval in seconds
|
static java.lang.String |
BEST_MATCH_EXPLANATORY_TEXT
Workflow Option: Insert Explanatory Text before the Best Fuzzy Match
|
static java.lang.String |
BEST_MATCH_INSERT
Workflow Option: Insert Best Match Into Translated Segment
|
static java.lang.String |
BEST_MATCH_MINIMAL_SIMILARITY
Workflow Option: Minimal Similarity Of the Best Fuzzy Match to insert
|
static int |
BEST_MATCH_MINIMAL_SIMILARITY_DEFAULT
Default Value of Workflow Option: Minimal Similarity Of the Best Fuzzy
Match to insert
|
static java.lang.String |
CHECK_ALL_PRINTF_TAGS
Tag Validation Option: check all printf-tags
|
static java.lang.String |
CHECK_CUSTOM_PATTERN
Tag Validation Option: check user defined tags according to regexp.
|
static java.lang.String |
CHECK_JAVA_PATTERN_TAGS
Tag Validation Option: check simple java MessageFormat pattern tags
|
static java.lang.String |
CHECK_REMOVE_PATTERN
Tag Validation Option: check target for text that should have been removed according to regexp.
|
static java.lang.String |
CHECK_SIMPLE_PRINTF_TAGS
Tag Validation Option: check simple printf-tags
|
static java.lang.String |
CONVERT_NUMBERS
Workflow Option: Attempt to convert numbers when inserting a fuzzy match
|
static java.lang.String |
CREATE_GLOSSARY_GEOMETRY_PREFIX
Create Glossary Entry dialog
|
static java.lang.String |
CURRENT_FOLDER |
static java.lang.String |
DICT_FOLDER |
static java.lang.String |
DICTIONARY_AUTO_SEARCH |
static java.lang.String |
DICTIONARY_FUZZY_MATCHING |
static java.lang.String |
DISPLAY_MODIFICATION_INFO
display modification info (author and modification date)
|
static java.lang.String |
DISPLAY_SEGMENT_SOURCES
display the segment sources
|
static java.lang.String |
DONT_CHECK_PRINTF_TAGS
Tag Validation Option: Don't check printf-tags
|
static boolean |
DONT_CHECK_PRINTF_TAGS_DEFAULT |
static java.lang.String |
DONT_INSERT_SOURCE_TEXT
Workflow Option: Don't Insert Source Text Into Translated Segment
|
static java.lang.String |
EDITOR_INITIAL_SEGMENT_LOAD_COUNT
Workflow Option: Number of segments to load initially in editor
|
static int |
EDITOR_INITIAL_SEGMENT_LOAD_COUNT_DEFAULT |
static java.lang.String |
EXPORT_CURRENT_SEGMENT
Workflow Option: Export current segment
|
static java.lang.String |
EXT_TMX_FUZZY_MATCH_THRESHOLD
External TMX options: Fuzzy Threshold
|
static java.lang.String |
EXT_TMX_KEEP_FOREIGN_MATCH
External TMX options: Whether to show fuzzy matches from foreign (non-target language) matches.
|
static java.lang.String |
EXT_TMX_MATCH_TEMPLATE
External TMX options: Display template
|
static java.lang.String |
EXT_TMX_SHOW_LEVEL2
External TMX options: Display level 2 tags
|
static java.lang.String |
EXT_TMX_SORT_KEY
External TMX options: Fuzzy match sort key
|
static java.lang.String |
EXT_TMX_USE_SLASH
External TMX options: Use / for stand-alone tags
|
static java.lang.String |
EXTERNAL_COMMAND
Custom external command for post-processing
|
static java.lang.String |
EXTERNAL_FINDER_ALLOW_PROJECT_COMMANDS
External Finder
|
static java.lang.String |
FILE_PREFERENCES
OmegaT-wide Preferences Filename
|
static java.lang.String |
FILTERS_VERSION
Version of file filters.
|
static java.lang.String |
FONT_FALLBACK
Do aggressive font fallback
|
static java.lang.String |
GLOSSARY_FILE |
static java.lang.String |
GLOSSARY_FOLDER |
static java.lang.String |
GLOSSARY_LAYOUT |
static java.lang.String |
GLOSSARY_MERGE_ALTERNATE_DEFINITIONS |
static boolean |
GLOSSARY_MERGE_ALTERNATE_DEFINITIONS_DEFAULT |
static java.lang.String |
GLOSSARY_NOT_EXACT_MATCH |
static boolean |
GLOSSARY_NOT_EXACT_MATCH_DEFAULT |
static java.lang.String |
GLOSSARY_REPLACE_ON_INSERT |
static java.lang.String |
GLOSSARY_REQUIRE_SIMILAR_CASE |
static boolean |
GLOSSARY_REQUIRE_SIMILAR_CASE_DEFAULT |
static java.lang.String |
GLOSSARY_STEMMING |
static boolean |
GLOSSARY_STEMMING_DEFAULT |
static java.lang.String |
GLOSSARY_TBX_DISPLAY_CONTEXT |
static boolean |
GLOSSARY_TBX_DISPLAY_CONTEXT_DEFAULT |
static java.lang.String |
ISSUE_PROVIDERS_DISABLED |
static java.lang.String |
ISSUE_PROVIDERS_DONT_ASK |
static java.lang.String |
ISSUES_WINDOW_DIVIDER_LOCATION_BOTTOM |
static java.lang.String |
ISSUES_WINDOW_GEOMETRY_PREFIX
Issues
|
static java.lang.String |
LANGUAGETOOL_BRIDGE_TYPE
LanguageTool implementation to use
|
static java.lang.String |
LANGUAGETOOL_DISABLED_CATEGORIES_PREFIX
Disabled categories
|
static java.lang.String |
LANGUAGETOOL_DISABLED_RULES_PREFIX
Disabled rules prefix
|
static java.lang.String |
LANGUAGETOOL_ENABLED_RULES_PREFIX
Enabled rules prefix
|
static java.lang.String |
LANGUAGETOOL_LOCAL_SERVER_JAR_PATH
Local path to LanguageTool server jar file
|
static java.lang.String |
LANGUAGETOOL_REMOTE_URL
URL of remote LanguageTool server
|
static java.lang.String |
LOOSE_TAG_ORDERING |
static java.lang.String |
LT_DISABLED |
static boolean |
LT_DISABLED_DEFAULT |
static java.lang.String |
MAINWINDOW_GEOMETRY_PREFIX |
static java.lang.String |
MAINWINDOW_LAYOUT |
static java.lang.String |
MARK_AUTOPOPULATED |
static java.lang.String |
MARK_BIDI
Mark Bidi controls as symbols
|
static java.lang.String |
MARK_GLOSSARY_MATCHES
Mark glossary matches.
|
static java.lang.String |
MARK_NBSP
Mark the non-breakable spaces with a different color
|
static java.lang.String |
MARK_NON_UNIQUE_SEGMENTS
mark unique segments
|
static java.lang.String |
MARK_NOTED_SEGMENTS
Mark the segments with a note with a different color
|
static java.lang.String |
MARK_PARA_DELIMITATIONS
Mark paragraphs starts
|
static java.lang.String |
MARK_PARA_TEXT |
static java.lang.String |
MARK_PARA_TEXT_DEFAULT
Default paragraph delimitation indicator
|
static java.lang.String |
MARK_TRANSLATED_SEGMENTS
Mark the translated segments with a different color
|
static java.lang.String |
MARK_UNTRANSLATED_SEGMENTS
Mark the untranslated segments with a different color
|
static java.lang.String |
MARK_WHITESPACE
Mark whitespace as symbols
|
static java.lang.String |
MOST_RECENT_PROJECTS_PREFIX |
static java.lang.String |
MOST_RECENT_PROJECTS_SIZE
Most recent projects list
|
static java.lang.String |
MT_AUTO_FETCH
Whether to automatically perform MT requests on entering segment
|
static java.lang.String |
MT_ONLY_UNTRANSLATED
Whether to restrict automatic MT requests to only untranslated segments
|
static java.lang.String |
NOTIFY_COMMENTS |
static java.lang.String |
NOTIFY_DICTIONARY_HITS |
static java.lang.String |
NOTIFY_FUZZY_MATCHES
Notification preferences
|
static java.lang.String |
NOTIFY_GLOSSARY_HITS |
static java.lang.String |
NOTIFY_MULTIPLE_TRANSLATIONS |
static java.lang.String |
NOTIFY_NOTES |
static java.lang.String |
PENALTY_FOR_FOREIGN_MATCHES
When a fuzzy match is displayed from a memory belonging to a language other
than the target language, a penalty is applied.
|
static int |
PENALTY_FOR_FOREIGN_MATCHES_DEFAULT |
static java.lang.String |
PROJECT_FILES_SHOW_ON_LOAD |
static java.lang.String |
PROJECT_FILES_USE_FONT |
static java.lang.String |
PROJECT_FILES_WINDOW_GEOMETRY_PREFIX |
static java.lang.String |
PROPERTY_FILTERS |
static java.lang.String |
PROPERTY_SRX |
static java.lang.String |
PROXY_PASSWORD
Proxy options: Password for proxy access
|
static java.lang.String |
PROXY_USER_NAME
Proxy options: User name for proxy access
|
static java.lang.String |
SAVE_AUTO_STATUS
Workflow Option: Save auto-populated status
|
static java.lang.String |
SB_PROGRESS_MODE
status bar progress mode
|
static java.lang.String |
SCRIPTS_DIRECTORY
The location of the scripts
|
static java.lang.String |
SCRIPTS_QUICK_0 |
static java.lang.String |
SCRIPTS_QUICK_1 |
static java.lang.String |
SCRIPTS_QUICK_2 |
static java.lang.String |
SCRIPTS_QUICK_3 |
static java.lang.String |
SCRIPTS_QUICK_4 |
static java.lang.String |
SCRIPTS_QUICK_5 |
static java.lang.String |
SCRIPTS_QUICK_6 |
static java.lang.String |
SCRIPTS_QUICK_7 |
static java.lang.String |
SCRIPTS_QUICK_8 |
static java.lang.String |
SCRIPTS_QUICK_9 |
static java.lang.String |
SCRIPTS_QUICK_PREFIX
Quick script names
|
static java.lang.String |
SCRIPTWINDOW_GEOMETRY_PREFIX
Script window
|
static java.lang.String |
SEARCHWINDOW_ADVANCED_VISIBLE |
static java.lang.String |
SEARCHWINDOW_ALL_RESULTS |
static java.lang.String |
SEARCHWINDOW_AUTHOR_NAME |
static java.lang.String |
SEARCHWINDOW_AUTO_SYNC |
static java.lang.String |
SEARCHWINDOW_BACK_TO_INITIAL_SEGMENT |
static java.lang.String |
SEARCHWINDOW_CASE_SENSITIVE |
static java.lang.String |
SEARCHWINDOW_CASE_SENSITIVE_REPLACE |
static java.lang.String |
SEARCHWINDOW_DATE_FROM |
static java.lang.String |
SEARCHWINDOW_DATE_FROM_VALUE |
static java.lang.String |
SEARCHWINDOW_DATE_TO |
static java.lang.String |
SEARCHWINDOW_DATE_TO_VALUE |
static java.lang.String |
SEARCHWINDOW_DIR |
static java.lang.String |
SEARCHWINDOW_EXCLUDE_ORPHANS |
static java.lang.String |
SEARCHWINDOW_FILE_NAMES |
static java.lang.String |
SEARCHWINDOW_FULLHALFWIDTH_INSENSITIVE |
static java.lang.String |
SEARCHWINDOW_GEOMETRY_PREFIX |
static java.lang.String |
SEARCHWINDOW_GLOSSARY_SEARCH |
static java.lang.String |
SEARCHWINDOW_HISTORY_SIZE |
static java.lang.String |
SEARCHWINDOW_MEMORY_SEARCH |
static java.lang.String |
SEARCHWINDOW_NUMBER_OF_RESULTS |
static java.lang.String |
SEARCHWINDOW_RECURSIVE |
static java.lang.String |
SEARCHWINDOW_REG_EXPRESSIONS |
static java.lang.String |
SEARCHWINDOW_REPLACE_HISTORY_ITEM_PREFIX |
static java.lang.String |
SEARCHWINDOW_REPLACE_TYPE |
static java.lang.String |
SEARCHWINDOW_REPLACE_UNTRANSLATED |
static java.lang.String |
SEARCHWINDOW_SEARCH_AUTHOR |
static java.lang.String |
SEARCHWINDOW_SEARCH_COMMENTS |
static java.lang.String |
SEARCHWINDOW_SEARCH_FILES |
static java.lang.String |
SEARCHWINDOW_SEARCH_HISTORY_ITEM_PREFIX |
static java.lang.String |
SEARCHWINDOW_SEARCH_NOTES |
static java.lang.String |
SEARCHWINDOW_SEARCH_SOURCE |
static java.lang.String |
SEARCHWINDOW_SEARCH_STATE |
static java.lang.String |
SEARCHWINDOW_SEARCH_TRANSLATION |
static java.lang.String |
SEARCHWINDOW_SEARCH_TYPE |
static java.lang.String |
SEARCHWINDOW_SPACE_MATCH_NBSP |
static java.lang.String |
SEARCHWINDOW_SPACE_MATCH_NBSP_REPLACE |
static java.lang.String |
SEARCHWINDOW_TM_SEARCH |
static java.lang.String |
SEGPROPS_INITIAL_MODE
Segment Properties Area preferences
|
static java.lang.String |
SEGPROPS_NOTIFY_DEFAULT_PROPS |
static java.lang.String |
SEGPROPS_NOTIFY_PROPS |
static java.lang.String |
SEGPROPS_SHOW_RAW_KEYS |
static java.lang.String |
SOURCE_FOLDER |
static java.lang.String |
SOURCE_LOCALE |
static java.lang.String |
SPELLCHECKER_DICTIONARY_DIRECTORY
The location of the spell checker dictionaries
|
static java.lang.String |
SPELLCHECKER_DICTIONARY_URL
URL of the dictionary repository
|
static java.lang.String |
STAT_COUNTING_CUSTOM_TAGS |
static boolean |
STAT_COUNTING_CUSTOM_TAGS_DEFAULT |
static java.lang.String |
STAT_COUNTING_PROTECTED_TEXT |
static boolean |
STAT_COUNTING_PROTECTED_TEXT_DEFAULT |
static java.lang.String |
STATISTICS_WINDOW_GEOMETRY_PREFIX
Statistics dialog
|
static java.lang.String |
STOP_ON_ALTERNATIVE_TRANSLATION
Workflow Option: Go To Next Untranslated Segment stops when there is at least one
alternative translation
|
static java.lang.String |
TAAS_DOMAIN |
static java.lang.String |
TAAS_LOOKUP
TaaS glossary client.
|
static java.lang.String |
TAG_VALIDATE_ON_LEAVE
Tag Validation Option: allow tag editing in editor.
|
static java.lang.String |
TAGS_VALID_REQUIRED |
static java.lang.String |
TAGVWINDOW_HEIGHT |
static java.lang.String |
TAGVWINDOW_WIDTH |
static java.lang.String |
TAGVWINDOW_X |
static java.lang.String |
TAGVWINDOW_Y |
static java.lang.String |
TARGET_FOLDER |
static java.lang.String |
TARGET_LOCALE |
static java.lang.String |
TEAM_AUTHOR
Team option: author ID
|
static java.lang.String |
TF_FONT_DEFAULT |
static int |
TF_FONT_SIZE_DEFAULT |
static java.lang.String |
TF_SRC_FONT_NAME |
static java.lang.String |
TF_SRC_FONT_SIZE |
static java.lang.String |
THEME_CLASS_NAME |
static java.lang.String |
THEME_CLASS_NAME_DEFAULT |
static java.lang.String |
TM_FOLDER |
static java.lang.String |
TOK_BEHAVIOR_PREFIX
Prefix for keys used to record default tokenizer behavior settings.
|
static java.lang.String |
USE_TAB_TO_ADVANCE
Use the TAB button to advance to the next segment
|
static java.lang.String |
VERSION_CHECK_AUTOMATIC
Version Checker
|
static boolean |
VERSION_CHECK_AUTOMATIC_DEFAULT |
static java.lang.String |
VIEW_OPTION_MOD_INFO_TEMPLATE |
static java.lang.String |
VIEW_OPTION_MOD_INFO_TEMPLATE_WO_DATE |
static java.lang.String |
VIEW_OPTION_PPT_SIMPLIFY
View options: Simplify protected parts tooltips
|
static boolean |
VIEW_OPTION_PPT_SIMPLIFY_DEFAULT |
static java.lang.String |
VIEW_OPTION_SOURCE_ACTIVE_BOLD
View options: Show active source in bold
|
static boolean |
VIEW_OPTION_SOURCE_ACTIVE_BOLD_DEFAULT |
static java.lang.String |
VIEW_OPTION_SOURCE_ALL_BOLD
View options: Show all sources in bold
|
static boolean |
VIEW_OPTION_SOURCE_ALL_BOLD_DEFAULT |
static java.lang.String |
VIEW_OPTION_TEMPLATE_ACTIVE
View options: Modification Info display templates
|
static boolean |
VIEW_OPTION_TEMPLATE_ACTIVE_DEFAULT |
static java.lang.String |
VIEW_OPTION_UNIQUE_FIRST
View options: Mark first non-unique
|
Modifier and Type | Method and Description |
---|---|
static void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Register to receive notifications when preferences change.
|
static void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Register to receive notifications when the specified preference changes.
|
static boolean |
existsPreference(java.lang.String key)
Returns true if the preference is in OmegaT's preferences file.
|
static Filters |
getFilters() |
static java.lang.String |
getPreference(java.lang.String key)
Returns the defaultValue of some preference out of OmegaT's preferences
file.
|
static int |
getPreferenceDefault(java.lang.String key,
int defaultValue)
Returns the integer value of some preference out of OmegaT's preferences
file, if it exists.
|
static java.lang.String |
getPreferenceDefault(java.lang.String key,
java.lang.String defaultValue)
Returns the value of some preference out of OmegaT's preferences file, if
it exists.
|
static <T extends java.lang.Enum<T>> |
getPreferenceEnumDefault(java.lang.String key,
T defaultValue)
Returns the value of some preference out of OmegaT's preferences file, if
it exists.
|
static SRX |
getSRX() |
static void |
init()
Initialize the preferences system.
|
static void |
initFilters() |
static void |
initSegmentation() |
static boolean |
isPreference(java.lang.String key)
Returns the boolean defaultValue of some preference.
|
static boolean |
isPreferenceDefault(java.lang.String key,
boolean defaultValue)
Returns the boolean value of some preference out of OmegaT's preferences
file, if it exists.
|
static void |
save() |
static void |
setFilters(Filters newFilters) |
static void |
setPreference(java.lang.String name,
java.lang.Object value)
Sets the value of some preference.
|
static void |
setSRX(SRX newSrx) |
public static final java.lang.String FILE_PREFERENCES
public static final java.lang.String SOURCE_LOCALE
public static final java.lang.String TARGET_LOCALE
public static final java.lang.String CURRENT_FOLDER
public static final java.lang.String SOURCE_FOLDER
public static final java.lang.String TARGET_FOLDER
public static final java.lang.String TM_FOLDER
public static final java.lang.String DICT_FOLDER
public static final java.lang.String GLOSSARY_FOLDER
public static final java.lang.String GLOSSARY_FILE
public static final java.lang.String TF_SRC_FONT_NAME
public static final java.lang.String TF_FONT_DEFAULT
public static final java.lang.String TF_SRC_FONT_SIZE
public static final int TF_FONT_SIZE_DEFAULT
public static final java.lang.String MT_AUTO_FETCH
public static final java.lang.String MT_ONLY_UNTRANSLATED
public static final java.lang.String GLOSSARY_TBX_DISPLAY_CONTEXT
public static final boolean GLOSSARY_TBX_DISPLAY_CONTEXT_DEFAULT
public static final java.lang.String GLOSSARY_NOT_EXACT_MATCH
public static final boolean GLOSSARY_NOT_EXACT_MATCH_DEFAULT
public static final java.lang.String GLOSSARY_STEMMING
public static final boolean GLOSSARY_STEMMING_DEFAULT
public static final java.lang.String GLOSSARY_REPLACE_ON_INSERT
public static final java.lang.String GLOSSARY_REQUIRE_SIMILAR_CASE
public static final boolean GLOSSARY_REQUIRE_SIMILAR_CASE_DEFAULT
public static final java.lang.String GLOSSARY_LAYOUT
public static final java.lang.String GLOSSARY_MERGE_ALTERNATE_DEFINITIONS
public static final boolean GLOSSARY_MERGE_ALTERNATE_DEFINITIONS_DEFAULT
public static final java.lang.String DICTIONARY_FUZZY_MATCHING
public static final java.lang.String DICTIONARY_AUTO_SEARCH
public static final java.lang.String MAINWINDOW_GEOMETRY_PREFIX
public static final java.lang.String MAINWINDOW_LAYOUT
public static final java.lang.String PROJECT_FILES_WINDOW_GEOMETRY_PREFIX
public static final java.lang.String PROJECT_FILES_USE_FONT
public static final java.lang.String PROJECT_FILES_SHOW_ON_LOAD
public static final java.lang.String SEARCHWINDOW_GEOMETRY_PREFIX
public static final java.lang.String SEARCHWINDOW_SEARCH_TYPE
public static final java.lang.String SEARCHWINDOW_REPLACE_TYPE
public static final java.lang.String SEARCHWINDOW_CASE_SENSITIVE
public static final java.lang.String SEARCHWINDOW_SPACE_MATCH_NBSP
public static final java.lang.String SEARCHWINDOW_CASE_SENSITIVE_REPLACE
public static final java.lang.String SEARCHWINDOW_SPACE_MATCH_NBSP_REPLACE
public static final java.lang.String SEARCHWINDOW_REPLACE_UNTRANSLATED
public static final java.lang.String SEARCHWINDOW_SEARCH_SOURCE
public static final java.lang.String SEARCHWINDOW_SEARCH_TRANSLATION
public static final java.lang.String SEARCHWINDOW_SEARCH_STATE
public static final java.lang.String SEARCHWINDOW_SEARCH_NOTES
public static final java.lang.String SEARCHWINDOW_SEARCH_COMMENTS
public static final java.lang.String SEARCHWINDOW_REG_EXPRESSIONS
public static final java.lang.String SEARCHWINDOW_GLOSSARY_SEARCH
public static final java.lang.String SEARCHWINDOW_MEMORY_SEARCH
public static final java.lang.String SEARCHWINDOW_TM_SEARCH
public static final java.lang.String SEARCHWINDOW_ALL_RESULTS
public static final java.lang.String SEARCHWINDOW_FILE_NAMES
public static final java.lang.String SEARCHWINDOW_ADVANCED_VISIBLE
public static final java.lang.String SEARCHWINDOW_SEARCH_AUTHOR
public static final java.lang.String SEARCHWINDOW_AUTHOR_NAME
public static final java.lang.String SEARCHWINDOW_DATE_FROM
public static final java.lang.String SEARCHWINDOW_DATE_FROM_VALUE
public static final java.lang.String SEARCHWINDOW_DATE_TO
public static final java.lang.String SEARCHWINDOW_DATE_TO_VALUE
public static final java.lang.String SEARCHWINDOW_NUMBER_OF_RESULTS
public static final java.lang.String SEARCHWINDOW_DIR
public static final java.lang.String SEARCHWINDOW_SEARCH_FILES
public static final java.lang.String SEARCHWINDOW_RECURSIVE
public static final java.lang.String SEARCHWINDOW_AUTO_SYNC
public static final java.lang.String SEARCHWINDOW_BACK_TO_INITIAL_SEGMENT
public static final java.lang.String SEARCHWINDOW_EXCLUDE_ORPHANS
public static final java.lang.String SEARCHWINDOW_FULLHALFWIDTH_INSENSITIVE
public static final java.lang.String SEARCHWINDOW_HISTORY_SIZE
public static final java.lang.String SEARCHWINDOW_SEARCH_HISTORY_ITEM_PREFIX
public static final java.lang.String SEARCHWINDOW_REPLACE_HISTORY_ITEM_PREFIX
public static final java.lang.String TAGVWINDOW_WIDTH
public static final java.lang.String TAGVWINDOW_HEIGHT
public static final java.lang.String TAGVWINDOW_X
public static final java.lang.String TAGVWINDOW_Y
public static final java.lang.String USE_TAB_TO_ADVANCE
public static final java.lang.String ALWAYS_CONFIRM_QUIT
public static final java.lang.String ALLOW_GOOGLE_TRANSLATE
public static final java.lang.String ALLOW_GOOGLE2_TRANSLATE
public static final java.lang.String ALLOW_BELAZAR_TRANSLATE
public static final java.lang.String ALLOW_DEEPL_TRANSLATE
public static final java.lang.String ALLOW_IBMWATSON_TRANSLATE
public static final java.lang.String ALLOW_APERTIUM_TRANSLATE
public static final java.lang.String ALLOW_MICROSOFT_TRANSLATOR_AZURE
public static final java.lang.String ALLOW_MYMEMORY_HUMAN_TRANSLATE
public static final java.lang.String ALLOW_MYMEMORY_MACHINE_TRANSLATE
public static final java.lang.String ALLOW_YANDEX_CLOUD_TRANSLATE
public static final java.lang.String ALLOW_MOSES_TRANSLATE
public static final java.lang.String MARK_GLOSSARY_MATCHES
public static final java.lang.String MARK_NOTED_SEGMENTS
public static final java.lang.String MARK_NBSP
public static final java.lang.String MARK_WHITESPACE
public static final java.lang.String MARK_BIDI
public static final java.lang.String FONT_FALLBACK
public static final java.lang.String MARK_PARA_DELIMITATIONS
public static final java.lang.String MARK_PARA_TEXT
public static final java.lang.String MARK_PARA_TEXT_DEFAULT
public static final java.lang.String MARK_TRANSLATED_SEGMENTS
public static final java.lang.String MARK_AUTOPOPULATED
public static final java.lang.String MARK_UNTRANSLATED_SEGMENTS
public static final java.lang.String DONT_INSERT_SOURCE_TEXT
public static final java.lang.String ALLOW_TRANS_EQUAL_TO_SRC
public static final java.lang.String BEST_MATCH_INSERT
public static final java.lang.String BEST_MATCH_MINIMAL_SIMILARITY
public static final int BEST_MATCH_MINIMAL_SIMILARITY_DEFAULT
public static final java.lang.String PENALTY_FOR_FOREIGN_MATCHES
public static final int PENALTY_FOR_FOREIGN_MATCHES_DEFAULT
public static final java.lang.String BEST_MATCH_EXPLANATORY_TEXT
public static final java.lang.String EXPORT_CURRENT_SEGMENT
public static final java.lang.String STOP_ON_ALTERNATIVE_TRANSLATION
public static final java.lang.String CONVERT_NUMBERS
public static final java.lang.String SAVE_AUTO_STATUS
public static final java.lang.String EDITOR_INITIAL_SEGMENT_LOAD_COUNT
public static final int EDITOR_INITIAL_SEGMENT_LOAD_COUNT_DEFAULT
public static final java.lang.String DONT_CHECK_PRINTF_TAGS
public static final boolean DONT_CHECK_PRINTF_TAGS_DEFAULT
public static final java.lang.String CHECK_SIMPLE_PRINTF_TAGS
public static final java.lang.String CHECK_ALL_PRINTF_TAGS
public static final java.lang.String CHECK_JAVA_PATTERN_TAGS
public static final java.lang.String CHECK_CUSTOM_PATTERN
public static final java.lang.String CHECK_REMOVE_PATTERN
public static final java.lang.String ALLOW_TAG_EDITING
public static final java.lang.String TAG_VALIDATE_ON_LEAVE
public static final java.lang.String TEAM_AUTHOR
public static final java.lang.String ALLOW_AUTO_SPELLCHECKING
public static final java.lang.String SPELLCHECKER_DICTIONARY_DIRECTORY
public static final java.lang.String SPELLCHECKER_DICTIONARY_URL
public static final java.lang.String LANGUAGETOOL_BRIDGE_TYPE
public static final java.lang.String LANGUAGETOOL_REMOTE_URL
public static final java.lang.String LANGUAGETOOL_LOCAL_SERVER_JAR_PATH
public static final java.lang.String LANGUAGETOOL_DISABLED_CATEGORIES_PREFIX
public static final java.lang.String LANGUAGETOOL_DISABLED_RULES_PREFIX
public static final java.lang.String LANGUAGETOOL_ENABLED_RULES_PREFIX
public static final java.lang.String SCRIPTS_DIRECTORY
public static final java.lang.String SCRIPTS_QUICK_PREFIX
public static final java.lang.String SCRIPTS_QUICK_1
public static final java.lang.String SCRIPTS_QUICK_2
public static final java.lang.String SCRIPTS_QUICK_3
public static final java.lang.String SCRIPTS_QUICK_4
public static final java.lang.String SCRIPTS_QUICK_5
public static final java.lang.String SCRIPTS_QUICK_6
public static final java.lang.String SCRIPTS_QUICK_7
public static final java.lang.String SCRIPTS_QUICK_8
public static final java.lang.String SCRIPTS_QUICK_9
public static final java.lang.String SCRIPTS_QUICK_0
public static final java.lang.String SCRIPTWINDOW_GEOMETRY_PREFIX
public static final java.lang.String MOST_RECENT_PROJECTS_SIZE
public static final java.lang.String MOST_RECENT_PROJECTS_PREFIX
public static final java.lang.String DISPLAY_SEGMENT_SOURCES
public static final java.lang.String MARK_NON_UNIQUE_SEGMENTS
public static final java.lang.String DISPLAY_MODIFICATION_INFO
public static final java.lang.String EXT_TMX_SHOW_LEVEL2
public static final java.lang.String EXT_TMX_USE_SLASH
public static final java.lang.String EXT_TMX_MATCH_TEMPLATE
public static final java.lang.String EXT_TMX_SORT_KEY
public static final java.lang.String EXT_TMX_KEEP_FOREIGN_MATCH
public static final java.lang.String EXT_TMX_FUZZY_MATCH_THRESHOLD
public static final java.lang.String VIEW_OPTION_SOURCE_ALL_BOLD
public static final boolean VIEW_OPTION_SOURCE_ALL_BOLD_DEFAULT
public static final java.lang.String VIEW_OPTION_SOURCE_ACTIVE_BOLD
public static final boolean VIEW_OPTION_SOURCE_ACTIVE_BOLD_DEFAULT
public static final java.lang.String VIEW_OPTION_UNIQUE_FIRST
public static final java.lang.String VIEW_OPTION_PPT_SIMPLIFY
public static final boolean VIEW_OPTION_PPT_SIMPLIFY_DEFAULT
public static final java.lang.String VIEW_OPTION_TEMPLATE_ACTIVE
public static final boolean VIEW_OPTION_TEMPLATE_ACTIVE_DEFAULT
public static final java.lang.String VIEW_OPTION_MOD_INFO_TEMPLATE
public static final java.lang.String VIEW_OPTION_MOD_INFO_TEMPLATE_WO_DATE
public static final java.lang.String PROXY_USER_NAME
public static final java.lang.String PROXY_PASSWORD
public static final java.lang.String AUTO_SAVE_INTERVAL
public static final int AUTO_SAVE_DEFAULT
public static final java.lang.String EXTERNAL_COMMAND
public static final java.lang.String ALLOW_PROJECT_EXTERN_CMD
public static final java.lang.String FILTERS_VERSION
public static final java.lang.String LT_DISABLED
public static final boolean LT_DISABLED_DEFAULT
public static final java.lang.String LOOSE_TAG_ORDERING
public static final java.lang.String TAGS_VALID_REQUIRED
public static final java.lang.String STAT_COUNTING_PROTECTED_TEXT
public static final boolean STAT_COUNTING_PROTECTED_TEXT_DEFAULT
public static final java.lang.String STAT_COUNTING_CUSTOM_TAGS
public static final boolean STAT_COUNTING_CUSTOM_TAGS_DEFAULT
public static final java.lang.String TOK_BEHAVIOR_PREFIX
TOK_BEHAVIOR_PREFIX + tokenizer.class.getName()
to obtain
tokenizer_behavior_org.omegat.tokenizer.LuceneXXTokenizer
public static final java.lang.String AC_SHOW_SUGGESTIONS_AUTOMATICALLY
public static final java.lang.String AC_SWITCH_VIEWS_WITH_LR
public static final java.lang.String AC_GLOSSARY_ENABLED
public static final boolean AC_GLOSSARY_ENABLED_DEFAULT
public static final java.lang.String AC_GLOSSARY_SHOW_SOURCE
public static final java.lang.String AC_GLOSSARY_SHOW_TARGET_BEFORE_SOURCE
public static final java.lang.String AC_GLOSSARY_SORT_BY_SOURCE
public static final java.lang.String AC_GLOSSARY_SORT_BY_LENGTH
public static final java.lang.String AC_GLOSSARY_SORT_ALPHABETICALLY
public static final java.lang.String AC_GLOSSARY_CAPITALIZE
public static final java.lang.String AC_AUTOTEXT_ENABLED
public static final boolean AC_AUTOTEXT_ENABLED_DEFAULT
public static final java.lang.String AC_AUTOTEXT_SORT_BY_LENGTH
public static final java.lang.String AC_AUTOTEXT_SORT_ALPHABETICALLY
public static final java.lang.String AC_AUTOTEXT_SORT_FULL_TEXT
public static final java.lang.String AC_CHARTABLE_ENABLED
public static final boolean AC_CHARTABLE_ENABLED_DEFAULT
public static final java.lang.String AC_CHARTABLE_USE_CUSTOM_CHARS
public static final java.lang.String AC_CHARTABLE_CUSTOM_CHAR_STRING
public static final java.lang.String AC_CHARTABLE_UNIQUE_CUSTOM_CHARS
public static final java.lang.String AC_HISTORY_COMPLETION_ENABLED
public static final java.lang.String AC_HISTORY_PREDICTION_ENABLED
public static final java.lang.String SB_PROGRESS_MODE
public static final java.lang.String TAAS_LOOKUP
public static final java.lang.String TAAS_DOMAIN
public static final java.lang.String SEGPROPS_INITIAL_MODE
public static final java.lang.String SEGPROPS_SHOW_RAW_KEYS
public static final java.lang.String SEGPROPS_NOTIFY_PROPS
public static final java.lang.String SEGPROPS_NOTIFY_DEFAULT_PROPS
public static final java.lang.String NOTIFY_FUZZY_MATCHES
public static final java.lang.String NOTIFY_GLOSSARY_HITS
public static final java.lang.String NOTIFY_COMMENTS
public static final java.lang.String NOTIFY_DICTIONARY_HITS
public static final java.lang.String NOTIFY_MULTIPLE_TRANSLATIONS
public static final java.lang.String NOTIFY_NOTES
public static final java.lang.String ALIGNER_HIGHLIGHT_PATTERN
public static final java.lang.String ALIGNER_HIGHLIGHT_PATTERN_DEFAULT
public static final java.lang.String CREATE_GLOSSARY_GEOMETRY_PREFIX
public static final java.lang.String PROPERTY_SRX
public static final java.lang.String PROPERTY_FILTERS
public static final java.lang.String STATISTICS_WINDOW_GEOMETRY_PREFIX
public static final java.lang.String ISSUES_WINDOW_GEOMETRY_PREFIX
public static final java.lang.String ISSUES_WINDOW_DIVIDER_LOCATION_BOTTOM
public static final java.lang.String ISSUE_PROVIDERS_DISABLED
public static final java.lang.String ISSUE_PROVIDERS_DONT_ASK
public static final java.lang.String EXTERNAL_FINDER_ALLOW_PROJECT_COMMANDS
public static final java.lang.String VERSION_CHECK_AUTOMATIC
public static final boolean VERSION_CHECK_AUTOMATIC_DEFAULT
public static final java.lang.String THEME_CLASS_NAME
public static final java.lang.String THEME_CLASS_NAME_DEFAULT
public static java.lang.String getPreference(java.lang.String key)
If the key is not found, returns the empty string.
key
- key of the key to look up, usually a static string from this
classpublic static boolean existsPreference(java.lang.String key)
If the key is not found return false
key
- key of the key to look up, usually a static string from this classpublic static boolean isPreference(java.lang.String key)
Returns true if the preference exists and is equal to "true", false otherwise (no such preference, or it's equal to "false", etc).
key
- preference key, usually a static string from this classpublic static boolean isPreferenceDefault(java.lang.String key, boolean defaultValue)
If the key is not found, returns the default value provided and sets the preference to the default value.
key
- name of the key to look up, usually a static string from this
classdefaultValue
- default value for the keypublic static java.lang.String getPreferenceDefault(java.lang.String key, java.lang.String defaultValue)
If the key is not found, returns the default value provided and sets the preference to the default value.
key
- name of the key to look up, usually a static string from this
classdefaultValue
- default value for the keypublic static <T extends java.lang.Enum<T>> T getPreferenceEnumDefault(java.lang.String key, T defaultValue)
If the key is not found, returns the default value provided and sets the preference to the default value.
key
- name of the key to look up, usually a static string from this
classdefaultValue
- default value for the keypublic static int getPreferenceDefault(java.lang.String key, int defaultValue)
If the key is not found, returns the default value provided and sets the preference to the default value.
key
- name of the key to look up, usually a static string from this
classdefaultValue
- default value for the keypublic static void setPreference(java.lang.String name, java.lang.Object value)
name
- preference key name, usually Preferences.PREF_...value
- preference value as an objectpublic static void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Note: The value returned by PropertyChangeEvent#getNewValue()
will be of the "correct" type (Integer,
Boolean, Enum, etc.) but the value returned by PropertyChangeEvent#getOldValue()
will be the String
equivalent for storing in XML.
listener
- public static void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
Note: The value returned by getNewValue()
will be of the "correct" type (Integer, Boolean,
Enum, etc.) but the value returned by getOldValue()
will be the String equivalent for storing
in XML.
listener
- public static void setFilters(Filters newFilters)
public static Filters getFilters()
public static void setSRX(SRX newSrx)
public static SRX getSRX()
public static void save()
public static void init()
StaticUtils.getConfigDir()
(and others for
general prefs; see getPreferencesFile()
) and set things up to
create them via save()
if they don't yet exist.
When the preferences system is required but actual user preferences
shouldn't be loaded or altered (testing scenarios), use
TestPreferencesInitializer
methods or be sure to set the config
dir with RuntimePreferences.setConfigDir(String)
before calling
this method.
public static void initFilters()
public static void initSegmentation()