Class Preferences


  • public final class Preferences
    extends java.lang.Object
    Class to load & save global OmegaT preferences.

    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.

    • Field Detail

      • FILE_PREFERENCES

        public static final java.lang.String FILE_PREFERENCES
        OmegaT-wide Preferences Filename
      • EXPORT_TM_FOLDER

        public static final java.lang.String EXPORT_TM_FOLDER
        See Also:
        Constant Field Values
      • TF_SRC_FONT_NAME

        public static final java.lang.String TF_SRC_FONT_NAME
        See Also:
        Constant Field Values
      • TF_SRC_FONT_SIZE

        public static final java.lang.String TF_SRC_FONT_SIZE
        See Also:
        Constant Field Values
      • MT_AUTO_FETCH

        public static final java.lang.String MT_AUTO_FETCH
        Whether to automatically perform MT requests on entering segment
        See Also:
        Constant Field Values
      • MT_ONLY_UNTRANSLATED

        public static final java.lang.String MT_ONLY_UNTRANSLATED
        Whether to restrict automatic MT requests to only untranslated segments
        See Also:
        Constant Field Values
      • GLOSSARY_TBX_DISPLAY_CONTEXT

        public static final java.lang.String GLOSSARY_TBX_DISPLAY_CONTEXT
        See Also:
        Constant Field Values
      • GLOSSARY_TBX_DISPLAY_CONTEXT_DEFAULT

        public static final boolean GLOSSARY_TBX_DISPLAY_CONTEXT_DEFAULT
        See Also:
        Constant Field Values
      • GLOSSARY_NOT_EXACT_MATCH

        public static final java.lang.String GLOSSARY_NOT_EXACT_MATCH
        See Also:
        Constant Field Values
      • GLOSSARY_NOT_EXACT_MATCH_DEFAULT

        public static final boolean GLOSSARY_NOT_EXACT_MATCH_DEFAULT
        See Also:
        Constant Field Values
      • GLOSSARY_STEMMING

        public static final java.lang.String GLOSSARY_STEMMING
        See Also:
        Constant Field Values
      • GLOSSARY_STEMMING_DEFAULT

        public static final boolean GLOSSARY_STEMMING_DEFAULT
        See Also:
        Constant Field Values
      • GLOSSARY_REPLACE_ON_INSERT

        public static final java.lang.String GLOSSARY_REPLACE_ON_INSERT
        See Also:
        Constant Field Values
      • GLOSSARY_REQUIRE_SIMILAR_CASE

        public static final java.lang.String GLOSSARY_REQUIRE_SIMILAR_CASE
        See Also:
        Constant Field Values
      • GLOSSARY_REQUIRE_SIMILAR_CASE_DEFAULT

        public static final boolean GLOSSARY_REQUIRE_SIMILAR_CASE_DEFAULT
        See Also:
        Constant Field Values
      • GLOSSARY_MERGE_ALTERNATE_DEFINITIONS

        public static final java.lang.String GLOSSARY_MERGE_ALTERNATE_DEFINITIONS
        See Also:
        Constant Field Values
      • GLOSSARY_MERGE_ALTERNATE_DEFINITIONS_DEFAULT

        public static final boolean GLOSSARY_MERGE_ALTERNATE_DEFINITIONS_DEFAULT
        See Also:
        Constant Field Values
      • DICTIONARY_FUZZY_MATCHING

        public static final java.lang.String DICTIONARY_FUZZY_MATCHING
        See Also:
        Constant Field Values
      • DICTIONARY_AUTO_SEARCH

        public static final java.lang.String DICTIONARY_AUTO_SEARCH
        See Also:
        Constant Field Values
      • DICTIONARY_CONDENSED_VIEW

        public static final java.lang.String DICTIONARY_CONDENSED_VIEW
        See Also:
        Constant Field Values
      • DICTIONARY_USE_FONT

        public static final java.lang.String DICTIONARY_USE_FONT
        See Also:
        Constant Field Values
      • TF_DICTIONARY_FONT_SIZE

        public static final java.lang.String TF_DICTIONARY_FONT_SIZE
        See Also:
        Constant Field Values
      • MAINWINDOW_GEOMETRY_PREFIX

        public static final java.lang.String MAINWINDOW_GEOMETRY_PREFIX
        See Also:
        Constant Field Values
      • MAINWINDOW_LAYOUT

        public static final java.lang.String MAINWINDOW_LAYOUT
        See Also:
        Constant Field Values
      • PROJECT_FILES_WINDOW_GEOMETRY_PREFIX

        public static final java.lang.String PROJECT_FILES_WINDOW_GEOMETRY_PREFIX
        See Also:
        Constant Field Values
      • PROJECT_FILES_USE_FONT

        public static final java.lang.String PROJECT_FILES_USE_FONT
        See Also:
        Constant Field Values
      • PROJECT_FILES_SHOW_ON_LOAD

        public static final java.lang.String PROJECT_FILES_SHOW_ON_LOAD
        See Also:
        Constant Field Values
      • SEARCHWINDOW_GEOMETRY_PREFIX

        public static final java.lang.String SEARCHWINDOW_GEOMETRY_PREFIX
        See Also:
        Constant Field Values
      • SEARCHWINDOW_SEARCH_TYPE

        public static final java.lang.String SEARCHWINDOW_SEARCH_TYPE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_REPLACE_TYPE

        public static final java.lang.String SEARCHWINDOW_REPLACE_TYPE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_CASE_SENSITIVE

        public static final java.lang.String SEARCHWINDOW_CASE_SENSITIVE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_SPACE_MATCH_NBSP

        public static final java.lang.String SEARCHWINDOW_SPACE_MATCH_NBSP
        See Also:
        Constant Field Values
      • SEARCHWINDOW_CASE_SENSITIVE_REPLACE

        public static final java.lang.String SEARCHWINDOW_CASE_SENSITIVE_REPLACE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_SPACE_MATCH_NBSP_REPLACE

        public static final java.lang.String SEARCHWINDOW_SPACE_MATCH_NBSP_REPLACE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_REPLACE_UNTRANSLATED

        public static final java.lang.String SEARCHWINDOW_REPLACE_UNTRANSLATED
        See Also:
        Constant Field Values
      • SEARCHWINDOW_SEARCH_SOURCE

        public static final java.lang.String SEARCHWINDOW_SEARCH_SOURCE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_SEARCH_TRANSLATION

        public static final java.lang.String SEARCHWINDOW_SEARCH_TRANSLATION
        See Also:
        Constant Field Values
      • SEARCHWINDOW_SEARCH_STATE

        public static final java.lang.String SEARCHWINDOW_SEARCH_STATE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_SEARCH_NOTES

        public static final java.lang.String SEARCHWINDOW_SEARCH_NOTES
        See Also:
        Constant Field Values
      • SEARCHWINDOW_SEARCH_COMMENTS

        public static final java.lang.String SEARCHWINDOW_SEARCH_COMMENTS
        See Also:
        Constant Field Values
      • SEARCHWINDOW_REG_EXPRESSIONS

        public static final java.lang.String SEARCHWINDOW_REG_EXPRESSIONS
        See Also:
        Constant Field Values
      • SEARCHWINDOW_GLOSSARY_SEARCH

        public static final java.lang.String SEARCHWINDOW_GLOSSARY_SEARCH
        See Also:
        Constant Field Values
      • SEARCHWINDOW_MEMORY_SEARCH

        public static final java.lang.String SEARCHWINDOW_MEMORY_SEARCH
        See Also:
        Constant Field Values
      • SEARCHWINDOW_TM_SEARCH

        public static final java.lang.String SEARCHWINDOW_TM_SEARCH
        See Also:
        Constant Field Values
      • SEARCHWINDOW_ALL_RESULTS

        public static final java.lang.String SEARCHWINDOW_ALL_RESULTS
        See Also:
        Constant Field Values
      • SEARCHWINDOW_FILE_NAMES

        public static final java.lang.String SEARCHWINDOW_FILE_NAMES
        See Also:
        Constant Field Values
      • SEARCHWINDOW_ADVANCED_VISIBLE

        public static final java.lang.String SEARCHWINDOW_ADVANCED_VISIBLE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_SEARCH_AUTHOR

        public static final java.lang.String SEARCHWINDOW_SEARCH_AUTHOR
        See Also:
        Constant Field Values
      • SEARCHWINDOW_AUTHOR_NAME

        public static final java.lang.String SEARCHWINDOW_AUTHOR_NAME
        See Also:
        Constant Field Values
      • SEARCHWINDOW_DATE_FROM

        public static final java.lang.String SEARCHWINDOW_DATE_FROM
        See Also:
        Constant Field Values
      • SEARCHWINDOW_DATE_FROM_VALUE

        public static final java.lang.String SEARCHWINDOW_DATE_FROM_VALUE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_DATE_TO

        public static final java.lang.String SEARCHWINDOW_DATE_TO
        See Also:
        Constant Field Values
      • SEARCHWINDOW_DATE_TO_VALUE

        public static final java.lang.String SEARCHWINDOW_DATE_TO_VALUE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_NUMBER_OF_RESULTS

        public static final java.lang.String SEARCHWINDOW_NUMBER_OF_RESULTS
        See Also:
        Constant Field Values
      • SEARCHWINDOW_DIR

        public static final java.lang.String SEARCHWINDOW_DIR
        See Also:
        Constant Field Values
      • SEARCHWINDOW_SEARCH_FILES

        public static final java.lang.String SEARCHWINDOW_SEARCH_FILES
        See Also:
        Constant Field Values
      • SEARCHWINDOW_RECURSIVE

        public static final java.lang.String SEARCHWINDOW_RECURSIVE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_AUTO_SYNC

        public static final java.lang.String SEARCHWINDOW_AUTO_SYNC
        See Also:
        Constant Field Values
      • SEARCHWINDOW_BACK_TO_INITIAL_SEGMENT

        public static final java.lang.String SEARCHWINDOW_BACK_TO_INITIAL_SEGMENT
        See Also:
        Constant Field Values
      • SEARCHWINDOW_EXCLUDE_ORPHANS

        public static final java.lang.String SEARCHWINDOW_EXCLUDE_ORPHANS
        See Also:
        Constant Field Values
      • SEARCHWINDOW_FULLHALFWIDTH_INSENSITIVE

        public static final java.lang.String SEARCHWINDOW_FULLHALFWIDTH_INSENSITIVE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_HISTORY_SIZE

        public static final java.lang.String SEARCHWINDOW_HISTORY_SIZE
        See Also:
        Constant Field Values
      • SEARCHWINDOW_SEARCH_HISTORY_ITEM_PREFIX

        public static final java.lang.String SEARCHWINDOW_SEARCH_HISTORY_ITEM_PREFIX
        See Also:
        Constant Field Values
      • SEARCHWINDOW_REPLACE_HISTORY_ITEM_PREFIX

        public static final java.lang.String SEARCHWINDOW_REPLACE_HISTORY_ITEM_PREFIX
        See Also:
        Constant Field Values
      • USE_TAB_TO_ADVANCE

        public static final java.lang.String USE_TAB_TO_ADVANCE
        Use the TAB button to advance to the next segment
        See Also:
        Constant Field Values
      • ALWAYS_CONFIRM_QUIT

        public static final java.lang.String ALWAYS_CONFIRM_QUIT
        Always confirm Quit, even if the project is saved
        See Also:
        Constant Field Values
      • ALLOW_GOOGLE2_TRANSLATE

        public static final java.lang.String ALLOW_GOOGLE2_TRANSLATE
        See Also:
        Constant Field Values
      • ALLOW_BELAZAR_TRANSLATE

        public static final java.lang.String ALLOW_BELAZAR_TRANSLATE
        See Also:
        Constant Field Values
      • ALLOW_DEEPL_TRANSLATE

        public static final java.lang.String ALLOW_DEEPL_TRANSLATE
        See Also:
        Constant Field Values
      • ALLOW_IBMWATSON_TRANSLATE

        public static final java.lang.String ALLOW_IBMWATSON_TRANSLATE
        See Also:
        Constant Field Values
      • ALLOW_APERTIUM_TRANSLATE

        public static final java.lang.String ALLOW_APERTIUM_TRANSLATE
        See Also:
        Constant Field Values
      • ALLOW_MICROSOFT_TRANSLATOR_AZURE

        public static final java.lang.String ALLOW_MICROSOFT_TRANSLATOR_AZURE
        See Also:
        Constant Field Values
      • ALLOW_MYMEMORY_HUMAN_TRANSLATE

        public static final java.lang.String ALLOW_MYMEMORY_HUMAN_TRANSLATE
        See Also:
        Constant Field Values
      • ALLOW_MYMEMORY_MACHINE_TRANSLATE

        public static final java.lang.String ALLOW_MYMEMORY_MACHINE_TRANSLATE
        See Also:
        Constant Field Values
      • ALLOW_YANDEX_CLOUD_TRANSLATE

        public static final java.lang.String ALLOW_YANDEX_CLOUD_TRANSLATE
        See Also:
        Constant Field Values
      • MARK_GLOSSARY_MATCHES

        public static final java.lang.String MARK_GLOSSARY_MATCHES
        Mark glossary matches. This feature used to be called "TransTips", and the prefs key remains unchanged for backwards-compatibility.
        See Also:
        Constant Field Values
      • MARK_NOTED_SEGMENTS

        public static final java.lang.String MARK_NOTED_SEGMENTS
        Mark the segments with a note with a different color
        See Also:
        Constant Field Values
      • MARK_NBSP

        public static final java.lang.String MARK_NBSP
        Mark the non-breakable spaces with a different color
        See Also:
        Constant Field Values
      • MARK_WHITESPACE

        public static final java.lang.String MARK_WHITESPACE
        Mark whitespace as symbols
        See Also:
        Constant Field Values
      • MARK_BIDI

        public static final java.lang.String MARK_BIDI
        Mark Bidi controls as symbols
        See Also:
        Constant Field Values
      • FONT_FALLBACK

        public static final java.lang.String FONT_FALLBACK
        Do aggressive font fallback
        See Also:
        Constant Field Values
      • MARK_PARA_DELIMITATIONS

        public static final java.lang.String MARK_PARA_DELIMITATIONS
        Mark paragraphs starts
        See Also:
        Constant Field Values
      • MARK_PARA_TEXT_DEFAULT

        public static final java.lang.String MARK_PARA_TEXT_DEFAULT
        Default paragraph delimitation indicator
        See Also:
        Constant Field Values
      • MARK_TRANSLATED_SEGMENTS

        public static final java.lang.String MARK_TRANSLATED_SEGMENTS
        Mark the translated segments with a different color
        See Also:
        Constant Field Values
      • MARK_AUTOPOPULATED

        public static final java.lang.String MARK_AUTOPOPULATED
        See Also:
        Constant Field Values
      • MARK_UNTRANSLATED_SEGMENTS

        public static final java.lang.String MARK_UNTRANSLATED_SEGMENTS
        Mark the untranslated segments with a different color
        See Also:
        Constant Field Values
      • DONT_INSERT_SOURCE_TEXT

        public static final java.lang.String DONT_INSERT_SOURCE_TEXT
        Workflow Option: Don't Insert Source Text Into Translated Segment
        See Also:
        Constant Field Values
      • ALLOW_TRANS_EQUAL_TO_SRC

        public static final java.lang.String ALLOW_TRANS_EQUAL_TO_SRC
        Workflow Option: Allow translation to be equal to source
        See Also:
        Constant Field Values
      • BEST_MATCH_INSERT

        public static final java.lang.String BEST_MATCH_INSERT
        Workflow Option: Insert Best Match Into Translated Segment
        See Also:
        Constant Field Values
      • BEST_MATCH_MINIMAL_SIMILARITY

        public static final java.lang.String BEST_MATCH_MINIMAL_SIMILARITY
        Workflow Option: Minimal Similarity Of the Best Fuzzy Match to insert
        See Also:
        Constant Field Values
      • BEST_MATCH_MINIMAL_SIMILARITY_DEFAULT

        public static final int BEST_MATCH_MINIMAL_SIMILARITY_DEFAULT
        Default Value of Workflow Option: Minimal Similarity Of the Best Fuzzy Match to insert
        See Also:
        Constant Field Values
      • PENALTY_FOR_FOREIGN_MATCHES

        public static final 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.
        See Also:
        Constant Field Values
      • PENALTY_FOR_FOREIGN_MATCHES_DEFAULT

        public static final int PENALTY_FOR_FOREIGN_MATCHES_DEFAULT
        See Also:
        Constant Field Values
      • BEST_MATCH_EXPLANATORY_TEXT

        public static final java.lang.String BEST_MATCH_EXPLANATORY_TEXT
        Workflow Option: Insert Explanatory Text before the Best Fuzzy Match
        See Also:
        Constant Field Values
      • EXPORT_CURRENT_SEGMENT

        public static final java.lang.String EXPORT_CURRENT_SEGMENT
        Workflow Option: Export current segment
        See Also:
        Constant Field Values
      • STOP_ON_ALTERNATIVE_TRANSLATION

        public static final java.lang.String STOP_ON_ALTERNATIVE_TRANSLATION
        Workflow Option: Go To Next Untranslated Segment stops when there is at least one alternative translation
        See Also:
        Constant Field Values
      • CONVERT_NUMBERS

        public static final java.lang.String CONVERT_NUMBERS
        Workflow Option: Attempt to convert numbers when inserting a fuzzy match
        See Also:
        Constant Field Values
      • SAVE_AUTO_STATUS

        public static final java.lang.String SAVE_AUTO_STATUS
        Workflow Option: Save auto-populated status
        See Also:
        Constant Field Values
      • SAVE_ORIGIN

        public static final java.lang.String SAVE_ORIGIN
        Workflow Option: Save MT origin
        See Also:
        Constant Field Values
      • EDITOR_INITIAL_SEGMENT_LOAD_COUNT

        public static final java.lang.String EDITOR_INITIAL_SEGMENT_LOAD_COUNT
        Workflow Option: Number of segments to load initially in editor
        See Also:
        Constant Field Values
      • EDITOR_INITIAL_SEGMENT_LOAD_COUNT_DEFAULT

        public static final int EDITOR_INITIAL_SEGMENT_LOAD_COUNT_DEFAULT
        See Also:
        Constant Field Values
      • DONT_CHECK_PRINTF_TAGS

        public static final java.lang.String DONT_CHECK_PRINTF_TAGS
        Tag Validation Option: Don't check printf-tags
        See Also:
        Constant Field Values
      • DONT_CHECK_PRINTF_TAGS_DEFAULT

        public static final boolean DONT_CHECK_PRINTF_TAGS_DEFAULT
        See Also:
        Constant Field Values
      • CHECK_SIMPLE_PRINTF_TAGS

        public static final java.lang.String CHECK_SIMPLE_PRINTF_TAGS
        Tag Validation Option: check simple printf-tags
        See Also:
        Constant Field Values
      • CHECK_ALL_PRINTF_TAGS

        public static final java.lang.String CHECK_ALL_PRINTF_TAGS
        Tag Validation Option: check all printf-tags
        See Also:
        Constant Field Values
      • CHECK_JAVA_PATTERN_TAGS

        public static final java.lang.String CHECK_JAVA_PATTERN_TAGS
        Tag Validation Option: check simple java MessageFormat pattern tags
        See Also:
        Constant Field Values
      • CHECK_CUSTOM_PATTERN

        public static final java.lang.String CHECK_CUSTOM_PATTERN
        Tag Validation Option: check user defined tags according to regexp.
        See Also:
        Constant Field Values
      • CHECK_REMOVE_PATTERN

        public static final java.lang.String CHECK_REMOVE_PATTERN
        Tag Validation Option: check target for text that should have been removed according to regexp.
        See Also:
        Constant Field Values
      • ALLOW_TAG_EDITING

        public static final java.lang.String ALLOW_TAG_EDITING
        Tag Validation Option: allow tag editing in editor.
        See Also:
        Constant Field Values
      • TAG_VALIDATE_ON_LEAVE

        public static final java.lang.String TAG_VALIDATE_ON_LEAVE
        Tag Validation Option: allow tag editing in editor.
        See Also:
        Constant Field Values
      • TEAM_AUTHOR

        public static final java.lang.String TEAM_AUTHOR
        Team option: author ID
        See Also:
        Constant Field Values
      • ALLOW_AUTO_SPELLCHECKING

        public static final java.lang.String ALLOW_AUTO_SPELLCHECKING
        allow automatic spell checking or not
        See Also:
        Constant Field Values
      • SPELLCHECKER_DICTIONARY_DIRECTORY

        public static final java.lang.String SPELLCHECKER_DICTIONARY_DIRECTORY
        The location of the spell checker dictionaries
        See Also:
        Constant Field Values
      • SPELLCHECKER_DICTIONARY_URL

        public static final java.lang.String SPELLCHECKER_DICTIONARY_URL
        URL of the dictionary repository
        See Also:
        Constant Field Values
      • LANGUAGETOOL_BRIDGE_TYPE

        public static final java.lang.String LANGUAGETOOL_BRIDGE_TYPE
        LanguageTool implementation to use
        See Also:
        Constant Field Values
      • LANGUAGETOOL_REMOTE_URL

        public static final java.lang.String LANGUAGETOOL_REMOTE_URL
        URL of remote LanguageTool server
        See Also:
        Constant Field Values
      • LANGUAGETOOL_LOCAL_SERVER_JAR_PATH

        public static final java.lang.String LANGUAGETOOL_LOCAL_SERVER_JAR_PATH
        Local path to LanguageTool server jar file
        See Also:
        Constant Field Values
      • LANGUAGETOOL_DISABLED_CATEGORIES_PREFIX

        public static final java.lang.String LANGUAGETOOL_DISABLED_CATEGORIES_PREFIX
        Disabled categories
        See Also:
        Constant Field Values
      • LANGUAGETOOL_DISABLED_RULES_PREFIX

        public static final java.lang.String LANGUAGETOOL_DISABLED_RULES_PREFIX
        Disabled rules prefix
        See Also:
        Constant Field Values
      • LANGUAGETOOL_ENABLED_RULES_PREFIX

        public static final java.lang.String LANGUAGETOOL_ENABLED_RULES_PREFIX
        Enabled rules prefix
        See Also:
        Constant Field Values
      • SCRIPTS_DIRECTORY

        public static final java.lang.String SCRIPTS_DIRECTORY
        The location of the scripts
        See Also:
        Constant Field Values
      • SCRIPTS_QUICK_PREFIX

        public static final java.lang.String SCRIPTS_QUICK_PREFIX
        Quick script names
        See Also:
        Constant Field Values
      • SCRIPTWINDOW_GEOMETRY_PREFIX

        public static final java.lang.String SCRIPTWINDOW_GEOMETRY_PREFIX
        Script window
        See Also:
        Constant Field Values
      • MOST_RECENT_PROJECTS_SIZE

        public static final java.lang.String MOST_RECENT_PROJECTS_SIZE
        Most recent projects list
        See Also:
        Constant Field Values
      • MOST_RECENT_PROJECTS_PREFIX

        public static final java.lang.String MOST_RECENT_PROJECTS_PREFIX
        See Also:
        Constant Field Values
      • DISPLAY_SEGMENT_SOURCES

        public static final java.lang.String DISPLAY_SEGMENT_SOURCES
        display the segment sources
        See Also:
        Constant Field Values
      • MARK_NON_UNIQUE_SEGMENTS

        public static final java.lang.String MARK_NON_UNIQUE_SEGMENTS
        mark unique segments
        See Also:
        Constant Field Values
      • DISPLAY_MODIFICATION_INFO

        public static final java.lang.String DISPLAY_MODIFICATION_INFO
        display modification info (author and modification date)
        See Also:
        Constant Field Values
      • EXT_TMX_SHOW_LEVEL2

        public static final java.lang.String EXT_TMX_SHOW_LEVEL2
        External TMX options: Display level 2 tags
        See Also:
        Constant Field Values
      • EXT_TMX_USE_SLASH

        public static final java.lang.String EXT_TMX_USE_SLASH
        External TMX options: Use / for stand-alone tags
        See Also:
        Constant Field Values
      • EXT_TMX_MATCH_TEMPLATE

        public static final java.lang.String EXT_TMX_MATCH_TEMPLATE
        External TMX options: Display template
        See Also:
        Constant Field Values
      • EXT_TMX_SORT_KEY

        public static final java.lang.String EXT_TMX_SORT_KEY
        External TMX options: Fuzzy match sort key
        See Also:
        Constant Field Values
      • EXT_TMX_KEEP_FOREIGN_MATCH

        public static final java.lang.String EXT_TMX_KEEP_FOREIGN_MATCH
        External TMX options: Whether to show fuzzy matches from foreign (non-target language) matches.
        See Also:
        Constant Field Values
      • EXT_TMX_FUZZY_MATCH_THRESHOLD

        public static final java.lang.String EXT_TMX_FUZZY_MATCH_THRESHOLD
        External TMX options: Fuzzy Threshold
        See Also:
        Constant Field Values
      • VIEW_OPTION_SOURCE_ALL_BOLD

        public static final java.lang.String VIEW_OPTION_SOURCE_ALL_BOLD
        View options: Show all sources in bold
        See Also:
        Constant Field Values
      • VIEW_OPTION_SOURCE_ALL_BOLD_DEFAULT

        public static final boolean VIEW_OPTION_SOURCE_ALL_BOLD_DEFAULT
        See Also:
        Constant Field Values
      • VIEW_OPTION_SOURCE_ACTIVE_BOLD

        public static final java.lang.String VIEW_OPTION_SOURCE_ACTIVE_BOLD
        View options: Show active source in bold
        See Also:
        Constant Field Values
      • VIEW_OPTION_SOURCE_ACTIVE_BOLD_DEFAULT

        public static final boolean VIEW_OPTION_SOURCE_ACTIVE_BOLD_DEFAULT
        See Also:
        Constant Field Values
      • VIEW_OPTION_UNIQUE_FIRST

        public static final java.lang.String VIEW_OPTION_UNIQUE_FIRST
        View options: Mark first non-unique
        See Also:
        Constant Field Values
      • VIEW_OPTION_PPT_SIMPLIFY

        public static final java.lang.String VIEW_OPTION_PPT_SIMPLIFY
        View options: Simplify protected parts tooltips
        See Also:
        Constant Field Values
      • VIEW_OPTION_PPT_SIMPLIFY_DEFAULT

        public static final boolean VIEW_OPTION_PPT_SIMPLIFY_DEFAULT
        See Also:
        Constant Field Values
      • VIEW_OPTION_TEMPLATE_ACTIVE

        public static final java.lang.String VIEW_OPTION_TEMPLATE_ACTIVE
        View options: Modification Info display templates
        See Also:
        Constant Field Values
      • VIEW_OPTION_TEMPLATE_ACTIVE_DEFAULT

        public static final boolean VIEW_OPTION_TEMPLATE_ACTIVE_DEFAULT
        See Also:
        Constant Field Values
      • VIEW_OPTION_MOD_INFO_TEMPLATE

        public static final java.lang.String VIEW_OPTION_MOD_INFO_TEMPLATE
        See Also:
        Constant Field Values
      • VIEW_OPTION_MOD_INFO_TEMPLATE_WO_DATE

        public static final java.lang.String VIEW_OPTION_MOD_INFO_TEMPLATE_WO_DATE
        See Also:
        Constant Field Values
      • PROXY_USER_NAME

        public static final java.lang.String PROXY_USER_NAME
        Proxy options: User name for proxy access
        See Also:
        Constant Field Values
      • PROXY_PASSWORD

        public static final java.lang.String PROXY_PASSWORD
        Proxy options: Password for proxy access
        See Also:
        Constant Field Values
      • AUTO_SAVE_INTERVAL

        public static final java.lang.String AUTO_SAVE_INTERVAL
        Automatic save interval in seconds
        See Also:
        Constant Field Values
      • AUTO_SAVE_DEFAULT

        public static final int AUTO_SAVE_DEFAULT
        Default number of seconds to auto save project
        See Also:
        Constant Field Values
      • EXTERNAL_COMMAND

        public static final java.lang.String EXTERNAL_COMMAND
        Custom external command for post-processing
        See Also:
        Constant Field Values
      • ALLOW_PROJECT_EXTERN_CMD

        public static final java.lang.String ALLOW_PROJECT_EXTERN_CMD
        Allow per-project external commands
        See Also:
        Constant Field Values
      • FILTERS_VERSION

        public static final java.lang.String FILTERS_VERSION
        Version of file filters. Unfortunately cannot put it into filters itself for backwards compatibility reasons.
        See Also:
        Constant Field Values
      • LOOSE_TAG_ORDERING

        public static final java.lang.String LOOSE_TAG_ORDERING
        See Also:
        Constant Field Values
      • TAGS_VALID_REQUIRED

        public static final java.lang.String TAGS_VALID_REQUIRED
        See Also:
        Constant Field Values
      • STAT_COUNTING_PROTECTED_TEXT

        public static final java.lang.String STAT_COUNTING_PROTECTED_TEXT
        See Also:
        Constant Field Values
      • STAT_COUNTING_PROTECTED_TEXT_DEFAULT

        public static final boolean STAT_COUNTING_PROTECTED_TEXT_DEFAULT
        See Also:
        Constant Field Values
      • STAT_COUNTING_CUSTOM_TAGS

        public static final java.lang.String STAT_COUNTING_CUSTOM_TAGS
        See Also:
        Constant Field Values
      • STAT_COUNTING_CUSTOM_TAGS_DEFAULT

        public static final boolean STAT_COUNTING_CUSTOM_TAGS_DEFAULT
        See Also:
        Constant Field Values
      • TOK_BEHAVIOR_PREFIX

        public static final java.lang.String TOK_BEHAVIOR_PREFIX
        Prefix for keys used to record default tokenizer behavior settings. Prepend to the full name of the tokenizer, e.g. TOK_BEHAVIOR_PREFIX + tokenizer.class.getName() to obtain tokenizer_behavior_org.omegat.tokenizer.LuceneXXTokenizer
        See Also:
        Constant Field Values
      • AC_SHOW_SUGGESTIONS_AUTOMATICALLY

        public static final java.lang.String AC_SHOW_SUGGESTIONS_AUTOMATICALLY
        See Also:
        Constant Field Values
      • AC_SWITCH_VIEWS_WITH_LR

        public static final java.lang.String AC_SWITCH_VIEWS_WITH_LR
        See Also:
        Constant Field Values
      • AC_GLOSSARY_ENABLED

        public static final java.lang.String AC_GLOSSARY_ENABLED
        glossary auto-completion
        See Also:
        Constant Field Values
      • AC_GLOSSARY_ENABLED_DEFAULT

        public static final boolean AC_GLOSSARY_ENABLED_DEFAULT
        See Also:
        Constant Field Values
      • AC_GLOSSARY_SHOW_SOURCE

        public static final java.lang.String AC_GLOSSARY_SHOW_SOURCE
        See Also:
        Constant Field Values
      • AC_GLOSSARY_SHOW_TARGET_BEFORE_SOURCE

        public static final java.lang.String AC_GLOSSARY_SHOW_TARGET_BEFORE_SOURCE
        See Also:
        Constant Field Values
      • AC_GLOSSARY_SORT_BY_SOURCE

        public static final java.lang.String AC_GLOSSARY_SORT_BY_SOURCE
        See Also:
        Constant Field Values
      • AC_GLOSSARY_SORT_BY_LENGTH

        public static final java.lang.String AC_GLOSSARY_SORT_BY_LENGTH
        See Also:
        Constant Field Values
      • AC_GLOSSARY_SORT_ALPHABETICALLY

        public static final java.lang.String AC_GLOSSARY_SORT_ALPHABETICALLY
        See Also:
        Constant Field Values
      • AC_GLOSSARY_CAPITALIZE

        public static final java.lang.String AC_GLOSSARY_CAPITALIZE
        See Also:
        Constant Field Values
      • AC_AUTOTEXT_ENABLED

        public static final java.lang.String AC_AUTOTEXT_ENABLED
        autotext auto-completion
        See Also:
        Constant Field Values
      • AC_AUTOTEXT_ENABLED_DEFAULT

        public static final boolean AC_AUTOTEXT_ENABLED_DEFAULT
        See Also:
        Constant Field Values
      • AC_AUTOTEXT_SORT_BY_LENGTH

        public static final java.lang.String AC_AUTOTEXT_SORT_BY_LENGTH
        See Also:
        Constant Field Values
      • AC_AUTOTEXT_SORT_ALPHABETICALLY

        public static final java.lang.String AC_AUTOTEXT_SORT_ALPHABETICALLY
        See Also:
        Constant Field Values
      • AC_AUTOTEXT_SORT_FULL_TEXT

        public static final java.lang.String AC_AUTOTEXT_SORT_FULL_TEXT
        See Also:
        Constant Field Values
      • AC_CHARTABLE_ENABLED

        public static final java.lang.String AC_CHARTABLE_ENABLED
        char table auto-completion
        See Also:
        Constant Field Values
      • AC_CHARTABLE_ENABLED_DEFAULT

        public static final boolean AC_CHARTABLE_ENABLED_DEFAULT
        See Also:
        Constant Field Values
      • AC_CHARTABLE_USE_CUSTOM_CHARS

        public static final java.lang.String AC_CHARTABLE_USE_CUSTOM_CHARS
        See Also:
        Constant Field Values
      • AC_CHARTABLE_CUSTOM_CHAR_STRING

        public static final java.lang.String AC_CHARTABLE_CUSTOM_CHAR_STRING
        See Also:
        Constant Field Values
      • AC_CHARTABLE_UNIQUE_CUSTOM_CHARS

        public static final java.lang.String AC_CHARTABLE_UNIQUE_CUSTOM_CHARS
        See Also:
        Constant Field Values
      • AC_HISTORY_COMPLETION_ENABLED

        public static final java.lang.String AC_HISTORY_COMPLETION_ENABLED
        history completion and prediction
        See Also:
        Constant Field Values
      • AC_HISTORY_PREDICTION_ENABLED

        public static final java.lang.String AC_HISTORY_PREDICTION_ENABLED
        See Also:
        Constant Field Values
      • SB_PROGRESS_MODE

        public static final java.lang.String SB_PROGRESS_MODE
        status bar progress mode
        See Also:
        Constant Field Values
      • SEGPROPS_INITIAL_MODE

        public static final java.lang.String SEGPROPS_INITIAL_MODE
        Segment Properties Area preferences
        See Also:
        Constant Field Values
      • SEGPROPS_SHOW_RAW_KEYS

        public static final java.lang.String SEGPROPS_SHOW_RAW_KEYS
        See Also:
        Constant Field Values
      • SEGPROPS_NOTIFY_PROPS

        public static final java.lang.String SEGPROPS_NOTIFY_PROPS
        See Also:
        Constant Field Values
      • SEGPROPS_NOTIFY_DEFAULT_PROPS

        public static final java.lang.String SEGPROPS_NOTIFY_DEFAULT_PROPS
        See Also:
        Constant Field Values
      • NOTIFY_FUZZY_MATCHES

        public static final java.lang.String NOTIFY_FUZZY_MATCHES
        Notification preferences
        See Also:
        Constant Field Values
      • NOTIFY_GLOSSARY_HITS

        public static final java.lang.String NOTIFY_GLOSSARY_HITS
        See Also:
        Constant Field Values
      • NOTIFY_DICTIONARY_HITS

        public static final java.lang.String NOTIFY_DICTIONARY_HITS
        See Also:
        Constant Field Values
      • NOTIFY_DICTIONARY_NOHIT

        public static final java.lang.String NOTIFY_DICTIONARY_NOHIT
        See Also:
        Constant Field Values
      • NOTIFY_MULTIPLE_TRANSLATIONS

        public static final java.lang.String NOTIFY_MULTIPLE_TRANSLATIONS
        See Also:
        Constant Field Values
      • ALIGNER_HIGHLIGHT_PATTERN

        public static final java.lang.String ALIGNER_HIGHLIGHT_PATTERN
        Aligner settings
        See Also:
        Constant Field Values
      • ALIGNER_HIGHLIGHT_PATTERN_DEFAULT

        public static final java.lang.String ALIGNER_HIGHLIGHT_PATTERN_DEFAULT
        See Also:
        Constant Field Values
      • CREATE_GLOSSARY_GEOMETRY_PREFIX

        public static final java.lang.String CREATE_GLOSSARY_GEOMETRY_PREFIX
        Create Glossary Entry dialog
        See Also:
        Constant Field Values
      • PROPERTY_FILTERS

        public static final java.lang.String PROPERTY_FILTERS
        See Also:
        Constant Field Values
      • STATISTICS_WINDOW_GEOMETRY_PREFIX

        public static final java.lang.String STATISTICS_WINDOW_GEOMETRY_PREFIX
        Statistics dialog
        See Also:
        Constant Field Values
      • ISSUES_WINDOW_GEOMETRY_PREFIX

        public static final java.lang.String ISSUES_WINDOW_GEOMETRY_PREFIX
        Issues
        See Also:
        Constant Field Values
      • ISSUES_WINDOW_DIVIDER_LOCATION_BOTTOM

        public static final java.lang.String ISSUES_WINDOW_DIVIDER_LOCATION_BOTTOM
        See Also:
        Constant Field Values
      • ISSUE_PROVIDERS_DISABLED

        public static final java.lang.String ISSUE_PROVIDERS_DISABLED
        See Also:
        Constant Field Values
      • ISSUE_PROVIDERS_DONT_ASK

        public static final java.lang.String ISSUE_PROVIDERS_DONT_ASK
        See Also:
        Constant Field Values
      • EXTERNAL_FINDER_ALLOW_PROJECT_COMMANDS

        public static final java.lang.String EXTERNAL_FINDER_ALLOW_PROJECT_COMMANDS
        External Finder
        See Also:
        Constant Field Values
      • VERSION_CHECK_AUTOMATIC

        public static final java.lang.String VERSION_CHECK_AUTOMATIC
        Version Checker
        See Also:
        Constant Field Values
      • VERSION_CHECK_AUTOMATIC_DEFAULT

        public static final boolean VERSION_CHECK_AUTOMATIC_DEFAULT
        See Also:
        Constant Field Values
      • THEME_CLASS_NAME

        public static final java.lang.String THEME_CLASS_NAME
        See Also:
        Constant Field Values
      • THEME_CLASS_NAME_DEFAULT

        public static final java.lang.String THEME_CLASS_NAME_DEFAULT
        See Also:
        Constant Field Values
      • GLOSSARY_SORT_BY_LENGTH

        public static final java.lang.String GLOSSARY_SORT_BY_LENGTH
        See Also:
        Constant Field Values
    • Method Detail

      • getPreference

        public static java.lang.String getPreference​(java.lang.String key)
        Returns the defaultValue of some preference out of OmegaT's preferences file.

        If the key is not found, returns the empty string.

        Parameters:
        key - key of the key to look up, usually a static string from this class
        Returns:
        preference defaultValue as a string
      • existsPreference

        public static boolean existsPreference​(java.lang.String key)
        Returns true if the preference is in OmegaT's preferences file.

        If the key is not found return false

        Parameters:
        key - key of the key to look up, usually a static string from this class
        Returns:
        true if preferences exists
      • isPreference

        public static boolean isPreference​(java.lang.String key)
        Returns the boolean defaultValue of some preference.

        Returns true if the preference exists and is equal to "true", false otherwise (no such preference, or it's equal to "false", etc).

        Parameters:
        key - preference key, usually a static string from this class
        Returns:
        preference defaultValue as a boolean
      • isPreferenceDefault

        public 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.

        If the key is not found, returns the default value provided and sets the preference to the default value.

        Parameters:
        key - name of the key to look up, usually a static string from this class
        defaultValue - default value for the key
        Returns:
        preference value as an boolean
      • getPreferenceDefault

        public 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.

        If the key is not found, returns the default value provided and sets the preference to the default value.

        Parameters:
        key - name of the key to look up, usually a static string from this class
        defaultValue - default value for the key
        Returns:
        preference value as a string
      • getPreferenceEnumDefault

        public static <T extends java.lang.Enum<T>> T getPreferenceEnumDefault​(java.lang.String key,
                                                                               T defaultValue)
        Returns the value of some preference out of OmegaT's preferences file, if it exists.

        If the key is not found, returns the default value provided and sets the preference to the default value.

        Parameters:
        key - name of the key to look up, usually a static string from this class
        defaultValue - default value for the key
        Returns:
        preference value as enum
      • getPreferenceDefault

        public 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.

        If the key is not found, returns the default value provided and sets the preference to the default value.

        Parameters:
        key - name of the key to look up, usually a static string from this class
        defaultValue - default value for the key
        Returns:
        preference value as an integer
      • setPreference

        public static void setPreference​(java.lang.String name,
                                         java.lang.Object value)
        Sets the value of some preference. The value will be persisted to disk as XML, serialized via value.toString().
        Parameters:
        name - preference key name, usually Preferences.PREF_...
        value - preference value as an object
      • addPropertyChangeListener

        public static void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Register to receive notifications when preferences change.

        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.

        Parameters:
        listener -
      • addPropertyChangeListener

        public static void addPropertyChangeListener​(java.lang.String property,
                                                     java.beans.PropertyChangeListener listener)
        Register to receive notifications when the specified preference changes.

        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.

        Parameters:
        listener -
      • setFilters

        public static void setFilters​(Filters newFilters)
      • getFilters

        public static Filters getFilters()
      • setSRX

        public static void setSRX​(SRX newSrx)
      • getSRX

        public static SRX getSRX()
      • save

        public static void save()
      • init

        public static void init()
        Initialize the preferences system. This will load
        • general user prefs
        • user filter settings
        • user segmentation settings
        from existing files in 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.

      • initFilters

        public static void initFilters()
      • initSegmentation

        public static void initSegmentation()