Package org.languagetool.gui
Class Configuration
java.lang.Object
org.languagetool.gui.Configuration
Configuration like list of disabled rule IDs, server mode etc.
Configuration is loaded from and stored to a properties file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate Stringprivate booleanprivate Stringprivate booleanprivate Stringprivate static final Stringprivate booleanprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate Fileprivate static final Stringprivate static final Stringprivate static final Stringprivate String(package private) static final String(package private) static final boolean(package private) static final String(package private) static final boolean(package private) static final String(package private) static final boolean(package private) static final boolean(package private) static final boolean(package private) static final boolean(package private) static final boolean(package private) static final boolean(package private) static final boolean(package private) static final boolean(package private) static final boolean(package private) static final boolean(package private) static final boolean(package private) static final int(package private) static final boolean(package private) static final int(package private) static final boolean(package private) static final boolean(package private) static final boolean(package private) static final boolean(package private) static final booleanprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate booleanprivate booleanprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate booleanprivate booleanprivate booleanprivate static final Stringprivate final Map<ITSIssueType, Color> private static final Stringprivate Stringprivate static final Stringprivate booleanprivate static final Stringprivate Languageprivate static final String(package private) static final intprivate static final String(package private) static final intprivate static final Stringprivate Stringprivate intprivate intprivate booleanprivate static final Stringprivate booleanprivate static final Stringprivate static final Stringprivate booleanprivate booleanprivate booleanprivate booleanprivate Languageprivate Languageprivate static final Stringprivate static final Stringprivate static final Stringprivate Stringprivate Stringprivate static final Stringprivate static final Stringprivate Stringprivate static final Stringprivate booleanprivate static final Stringprivate Languageprivate static final Stringprivate Fileprivate static final Stringprivate static final Stringprivate static final Stringprivate booleanprivate booleanprivate intprivate Fileprivate static final Stringprivate Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate Stringprivate Stringprivate static final Stringprivate booleanprivate static final Stringprivate booleanprivate static final Stringprivate static final Stringprivate int(package private) static final Colorprivate booleanprivate static final Stringprivate booleanstatic final shortstatic final shortprivate static final Stringstatic final shortprivate static final Stringprivate static final Stringprivate static final Stringstatic final shortprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate booleanprivate booleanprivate booleanprivate booleanprivate boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConfiguration(File baseDir, String filename, File oldConfigFile, Language lang, boolean isOffice) Configuration(File baseDir, String filename, Language lang) Configuration(File baseDir, Language lang) Configuration(Language lang) Uses the configuration file from the default location. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDisabledRuleIds(Set<String> ruleIds) private voidaddListToProperties(Properties props, String key, Set<String> list) voidaddProfile(String profile) add a new profilevoidaddProfiles(List<String> profiles) add a list of profilesaiApiKey()booleanaiModel()booleanaiUrl()(package private) Configurationcopy(Configuration configuration) Returns a copy of the given configuration.booleanbooleanbooleanvoidexportProfile(String profile, File exportFile) booleanbooleanreturns all configured values<T> TgetConfigValueByID(String ruleID, int index, Class<T> clazz, T defaultValue) Get the configurable value of a rule by ruleID returns default value if no value is set by configurationget the current profileget the current profilebooleanReturns the name of the GUI's editing textarea font.intReturns the size of the GUI's editing textarea font.intReturns the style of the GUI's editing textarea font.private Collection<? extends String> getListFromProperties(Properties props, String key) Returns the name of the GUI's LaF.Directory with ngram data or null.intget the number of paragraphs to be checked for TextLevelRulesprivate StringgetQualifier(Language lang) booleanintgetSpecialTabCategories(String tabName) String[]booleanDetermines whether the tagger window will also print the disambiguation log.getUnderlineColor(String category, String ruleId) getUnderlineType(String category, String ruleId) booleanbooleanvoidimportProfile(File importFile) booleanvoidInitialize variables and clears Maps, Sets and ListsvoidinitStyleCategories(List<Rule> allRules) booleanisInSpecialTab(String category, String tabName) booleanshall LO run in multi thread modebooleanbooleanwill all paragraphs check after every change of text?booleanisSpecialTabCategory(String category) booleanisStyleCategory(String category) booleanisValidAiServerUrl(String url) booleanisValidServerUrl(String url) Test if http-server URL is correctprivate voidloadConfigForOtherLanguages(Language lang, Properties prop, String prefix) private voidvoidloadConfiguration(String profile) private voidloadCurrentProfile(Properties props, String prefix, String qualifier) booleanbooleanreturn true if background check is switched of (no marks inside of document)booleanbooleanonly single paragraph mode can be used (for OO and old LOprivate voidparseConfigurableRuleValues(String rulesValueString) private voidparseErrorColors(String colorsString) private voidparseUnderlineColors(String colorsString, Map<String, Color> underlineColors) private voidparseUnderlineTypes(String typessString, Map<String, Short> underlineTypes) voidremoveConfigurableValue(String ruleID) Remove the configuration values of a rule by ruleIDvoidremoveDisabledRuleId(String ruleId) voidremoveDisabledRuleIds(Set<String> ruleIds) voidremoveEnabledRuleId(String ruleId) voidremoveProfile(String profile) remove an existing profile(package private) voidrestoreState(Configuration configuration) Restore the state of this object from configuration.private voidsaveConfigForCurrentProfile(Properties props, String prefix, String qualifier) private voidsaveConfigForProfile(Properties props, String prefix) voidsaveConfiguration(Language lang) booleanvoidsaveNoBackgroundCheck(boolean noBackgroundCheck, Language lang) set option to switch off background check and save configurationvoidsetAiApiKey(String aiApiKey) voidsetAiAutoCorrect(boolean aiAutoCorrect) voidsetAiModel(String aiModel) voidsetAiShowStylisticChanges(boolean aiShowStylisticChanges) voidprivate voidvoidsetAutoDetect(boolean autoDetect) voidsetConfigFile(File configFile) voidsetConfigurableValue(String ruleID, Object[] values) Set the values for a rule by ruleIDvoidsetCurrentProfile(String profile) set the current profilevoidsetDefaultUnderlineColor(String category) voidsetDefaultUnderlineRuleColor(String ruleId) voidsetDefaultUnderlineRuleType(String ruleID) voidsetDefaultUnderlineType(String category) voidsetDisabledCategoryNames(Set<String> categoryNames) voidsetDisabledRuleIds(Set<String> ruleIds) voidsetDoResetCheck(boolean resetCheck) set all paragraphs to be checked after every change of textvoidsetEnabledCategoryNames(Set<String> categoryNames) voidsetEnabledRuleIds(Set<String> ruleIds) voidsetEnableGoalSpecificRules(boolean enableGoalSpecificRules) voidsetEnableTmpOffRules(boolean enableTmpOffRules) voidvoidsetFilterOverlappingMatches(boolean filterOverlappingMatches) voidsetFixedLanguage(Language fixedLanguage) voidsetFontName(String fontName) Sets the name of the GUI's editing textarea font.voidsetFontSize(int fontSize) Sets the size of the GUI's editing textarea font.voidsetFontStyle(int fontStyle) Sets the style of the GUI's editing textarea font.voidsetIncludeTrackedChanges(boolean includeTrackedChanges) voidsetLanguage(Language language) voidsetLookAndFeelName(String lookAndFeelName) Sets the name of the GUI's LaF.voidsetMarkSingleCharBold(boolean markSingleCharBold) voidsetMotherTongue(Language motherTongue) voidsetMultiThreadLO(boolean isMultiThread) run LO in multi thread modevoidsetNgramDirectory(File dir) Sets the directory with ngram data (may be null).voidsetNoBackgroundCheck(boolean noBackgroundCheck) set option to switch off background check if true: LT engine is switched of (no marks inside of document)voidsetNoSynonymsAsSuggestions(boolean noSynonymsAsSuggestions) voidsetNumParasToCheck(int numParas) set the number of paragraphs to be checked for TextLevelRulesvoidsetOtherServerUrl(String otherServerUrl) voidsetPremium(boolean isPremium) voidsetRemoteApiKey(String remoteApiKey) voidsetRemoteCheck(boolean doRemoteCheck) voidsetRemoteUsername(String remoteUsername) voidsetRunServer(boolean runServer) voidsetSaveLoCache(boolean saveLoCache) voidsetServerPort(int serverPort) voidsetTaggerShowsDisambigLog(boolean taggerShowsDisambigLog) Enables or disables the disambiguation log on the tagger window, depending on the value of the parameter taggerShowsDisambigLog.voidsetUnderlineColor(String category, Color col) voidsetUnderlineRuleColor(String ruleId, Color col) voidsetUnderlineRuleType(String ruleID, short type) voidsetUnderlineType(String category, short type) voidsetUseAiSupport(boolean useAiSupport) voidsetUseDocLanguage(boolean useDocLang) voidsetUseGUIConfig(boolean useGUIConfig) voidsetUseLtSpellChecker(boolean useLtSpellChecker) voidsetUseOtherServer(boolean useOtherServer) voidsetUseTextLevelQueue(boolean useTextLevelQueue) set all paragraphs to be not checked after every change of text if more than one document loaded?private voidprivate voidstoreConfigKeyFromProp(Properties prop, String key) booleanbooleanbooleanbooleanwill all paragraphs not checked after every change of text if more than one document loaded?
-
Field Details
-
UNDERLINE_WAVE
public static final short UNDERLINE_WAVE- See Also:
-
UNDERLINE_BOLDWAVE
public static final short UNDERLINE_BOLDWAVE- See Also:
-
UNDERLINE_BOLD
public static final short UNDERLINE_BOLD- See Also:
-
UNDERLINE_DASH
public static final short UNDERLINE_DASH- See Also:
-
DEFAULT_SERVER_PORT
static final int DEFAULT_SERVER_PORT- See Also:
-
DEFAULT_NUM_CHECK_PARAS
static final int DEFAULT_NUM_CHECK_PARAS- See Also:
-
FONT_STYLE_INVALID
static final int FONT_STYLE_INVALID- See Also:
-
FONT_SIZE_INVALID
static final int FONT_SIZE_INVALID- See Also:
-
DEFAULT_DO_RESET
static final boolean DEFAULT_DO_RESET- See Also:
-
DEFAULT_MULTI_THREAD
static final boolean DEFAULT_MULTI_THREAD- See Also:
-
DEFAULT_NO_BACKGROUND_CHECK
static final boolean DEFAULT_NO_BACKGROUND_CHECK- See Also:
-
DEFAULT_USE_QUEUE
static final boolean DEFAULT_USE_QUEUE- See Also:
-
DEFAULT_USE_DOC_LANGUAGE
static final boolean DEFAULT_USE_DOC_LANGUAGE- See Also:
-
DEFAULT_DO_REMOTE_CHECK
static final boolean DEFAULT_DO_REMOTE_CHECK- See Also:
-
DEFAULT_USE_OTHER_SERVER
static final boolean DEFAULT_USE_OTHER_SERVER- See Also:
-
DEFAULT_IS_PREMIUM
static final boolean DEFAULT_IS_PREMIUM- See Also:
-
DEFAULT_MARK_SINGLE_CHAR_BOLD
static final boolean DEFAULT_MARK_SINGLE_CHAR_BOLD- See Also:
-
DEFAULT_USE_LT_SPELL_CHECKER
static final boolean DEFAULT_USE_LT_SPELL_CHECKER- See Also:
-
DEFAULT_NO_SYNONYMS_AS_SUGGESTIONS
static final boolean DEFAULT_NO_SYNONYMS_AS_SUGGESTIONS- See Also:
-
DEFAULT_INCLUDE_TRACKED_CHANGES
static final boolean DEFAULT_INCLUDE_TRACKED_CHANGES- See Also:
-
DEFAULT_ENABLE_TMP_OFF_RULES
static final boolean DEFAULT_ENABLE_TMP_OFF_RULES- See Also:
-
DEFAULT_ENABLE_GOAL_SPECIFIC_RULES
static final boolean DEFAULT_ENABLE_GOAL_SPECIFIC_RULES- See Also:
-
DEFAULT_FILTER_OVERLAPPING_MATCHES
static final boolean DEFAULT_FILTER_OVERLAPPING_MATCHES- See Also:
-
DEFAULT_SAVE_LO_CACHE
static final boolean DEFAULT_SAVE_LO_CACHE- See Also:
-
DEFAULT_USE_AI_SUPPORT
static final boolean DEFAULT_USE_AI_SUPPORT- See Also:
-
DEFAULT_AI_AUTO_CORRECT
static final boolean DEFAULT_AI_AUTO_CORRECT- See Also:
-
DEFAULT_AI_SHOW_STYLISTIC_CHANGES
static final boolean DEFAULT_AI_SHOW_STYLISTIC_CHANGES- See Also:
-
DEFAULT_AI_MODEL
- See Also:
-
DEFAULT_AI_URL
- See Also:
-
DEFAULT_AI_APIKEY
- See Also:
-
STYLE_COLOR
-
CONFIG_FILE
- See Also:
-
CURRENT_PROFILE_KEY
- See Also:
-
DEFINED_PROFILES_KEY
- See Also:
-
DISABLED_RULES_KEY
- See Also:
-
ENABLED_RULES_KEY
- See Also:
-
DISABLED_CATEGORIES_KEY
- See Also:
-
ENABLED_CATEGORIES_KEY
- See Also:
-
ENABLED_RULES_ONLY_KEY
- See Also:
-
LANGUAGE_KEY
- See Also:
-
MOTHER_TONGUE_KEY
- See Also:
-
FIXED_LANGUAGE_KEY
- See Also:
-
NGRAM_DIR_KEY
- See Also:
-
AUTO_DETECT_KEY
- See Also:
-
TAGGER_SHOWS_DISAMBIG_LOG_KEY
- See Also:
-
SERVER_RUN_KEY
- See Also:
-
SERVER_PORT_KEY
- See Also:
-
NO_DEFAULT_CHECK_KEY
- See Also:
-
PARA_CHECK_KEY
- See Also:
-
RESET_CHECK_KEY
- See Also:
-
USE_QUEUE_KEY
- See Also:
-
NO_BACKGROUND_CHECK_KEY
- See Also:
-
USE_DOC_LANG_KEY
- See Also:
-
USE_GUI_KEY
- See Also:
-
FONT_NAME_KEY
- See Also:
-
FONT_STYLE_KEY
- See Also:
-
FONT_SIZE_KEY
- See Also:
-
LF_NAME_KEY
- See Also:
-
ERROR_COLORS_KEY
- See Also:
-
UNDERLINE_COLORS_KEY
- See Also:
-
UNDERLINE_RULE_COLORS_KEY
- See Also:
-
UNDERLINE_TYPES_KEY
- See Also:
-
UNDERLINE_RULE_TYPES_KEY
- See Also:
-
CONFIGURABLE_RULE_VALUES_KEY
- See Also:
-
LT_SWITCHED_OFF_KEY
- See Also:
-
IS_MULTI_THREAD_LO_KEY
- See Also:
-
EXTERNAL_RULE_DIRECTORY
- See Also:
-
DO_REMOTE_CHECK_KEY
- See Also:
-
OTHER_SERVER_URL_KEY
- See Also:
-
REMOTE_USERNAME_KEY
- See Also:
-
REMOTE_APIKEY_KEY
- See Also:
-
USE_OTHER_SERVER_KEY
- See Also:
-
IS_PREMIUM_KEY
- See Also:
-
MARK_SINGLE_CHAR_BOLD_KEY
- See Also:
-
LOG_LEVEL_KEY
- See Also:
-
USE_LT_SPELL_CHECKER_KEY
- See Also:
-
NO_SYNONYMS_AS_SUGGESTIONS_KEY
- See Also:
-
INCLUDE_TRACKED_CHANGES_KEY
- See Also:
-
ENABLE_TMP_OFF_RULES_KEY
- See Also:
-
ENABLE_GOAL_SPECIFIC_RULES_KEY
- See Also:
-
FILTER_OVERLAPPING_MATCHES_KEY
- See Also:
-
SAVE_LO_CACHE_KEY
- See Also:
-
LT_VERSION_KEY
- See Also:
-
AI_URL_KEY
- See Also:
-
AI_APIKEY_KEY
- See Also:
-
AI_MODEL_KEY
- See Also:
-
AI_USE_AI_SUPPORT_KEY
- See Also:
-
AI_AUTO_CORRECT_KEY
- See Also:
-
AI_SHOW_STYLISTIC_CHANGES_KEY
- See Also:
-
DELIMITER
- See Also:
-
COLOR_SPLITTER_REGEXP
- See Also:
-
COLOR_SPLITTER_REGEXP_COLON
- See Also:
-
CONFIGURABLE_RULE_SPLITTER_REGEXP
- See Also:
-
BLANK
- See Also:
-
BLANK_REPLACE
- See Also:
-
PROFILE_DELIMITER
- See Also:
-
configForOtherProfiles
-
configForOtherLanguages
-
errorColors
-
underlineColors
-
underlineRuleColors
-
underlineTypes
-
underlineRuleTypes
-
configurableRuleValues
-
styleLikeCategories
-
specialTabCategories
-
disabledRuleIds
-
enabledRuleIds
-
disabledCategoryNames
-
enabledCategoryNames
-
definedProfiles
-
allProfileKeys
-
allProfileLangKeys
-
lang
-
configFile
-
oldConfigFile
-
enabledRulesOnly
private boolean enabledRulesOnly -
language
-
motherTongue
-
fixedLanguage
-
ngramDirectory
-
runServer
private boolean runServer -
autoDetect
private boolean autoDetect -
taggerShowsDisambigLog
private boolean taggerShowsDisambigLog -
guiConfig
private boolean guiConfig -
fontName
-
fontStyle
private int fontStyle -
fontSize
private int fontSize -
serverPort
private int serverPort -
numParasToCheck
private int numParasToCheck -
doResetCheck
private boolean doResetCheck -
isMultiThreadLO
private boolean isMultiThreadLO -
noBackgroundCheck
private boolean noBackgroundCheck -
useTextLevelQueue
private boolean useTextLevelQueue -
useDocLanguage
private boolean useDocLanguage -
doRemoteCheck
private boolean doRemoteCheck -
useOtherServer
private boolean useOtherServer -
isPremium
private boolean isPremium -
markSingleCharBold
private boolean markSingleCharBold -
useLtSpellChecker
private boolean useLtSpellChecker -
noSynonymsAsSuggestions
private boolean noSynonymsAsSuggestions -
includeTrackedChanges
private boolean includeTrackedChanges -
enableTmpOffRules
private boolean enableTmpOffRules -
enableGoalSpecificRules
private boolean enableGoalSpecificRules -
filterOverlappingMatches
private boolean filterOverlappingMatches -
saveLoCache
private boolean saveLoCache -
externalRuleDirectory
-
lookAndFeelName
-
currentProfile
-
otherServerUrl
-
remoteUsername
-
remoteApiKey
-
logLevel
-
ltVersion
-
switchOff
private boolean switchOff -
isOffice
private boolean isOffice -
isOpenOffice
private boolean isOpenOffice -
aiUrl
-
aiApiKey
-
aiModel
-
useAiSupport
private boolean useAiSupport -
aiAutoCorrect
private boolean aiAutoCorrect -
aiShowStylisticChanges
private boolean aiShowStylisticChanges
-
-
Constructor Details
-
Configuration
Uses the configuration file from the default location.- Parameters:
lang- The language for the configuration, used to distinguish rules that are enabled or disabled per language.- Throws:
IOException
-
Configuration
- Throws:
IOException
-
Configuration
- Throws:
IOException
-
Configuration
public Configuration(File baseDir, String filename, File oldConfigFile, Language lang, boolean isOffice) throws IOException - Throws:
IOException
-
Configuration
private Configuration()
-
-
Method Details
-
initOptions
public void initOptions()Initialize variables and clears Maps, Sets and Lists -
copy
Returns a copy of the given configuration.- Parameters:
configuration- the object to copy.- Since:
- 2.6
-
restoreState
Restore the state of this object from configuration.- Parameters:
configuration- the object from which we will read the state- Since:
- 2.6
-
setConfigFile
-
getDisabledRuleIds
-
getEnabledRuleIds
-
getDisabledCategoryNames
-
getEnabledCategoryNames
-
setDisabledRuleIds
-
addDisabledRuleIds
-
removeDisabledRuleIds
-
removeDisabledRuleId
-
removeEnabledRuleId
-
setEnabledRuleIds
-
setDisabledCategoryNames
-
setEnabledCategoryNames
-
getEnabledRulesOnly
public boolean getEnabledRulesOnly() -
getLanguage
-
setLanguage
-
getMotherTongue
-
setMotherTongue
-
getFixedLanguage
-
setFixedLanguage
-
getDefaultLanguage
-
setUseDocLanguage
public void setUseDocLanguage(boolean useDocLang) -
getUseDocLanguage
public boolean getUseDocLanguage() -
getAutoDetect
public boolean getAutoDetect() -
setAutoDetect
public void setAutoDetect(boolean autoDetect) -
setRemoteCheck
public void setRemoteCheck(boolean doRemoteCheck) -
doRemoteCheck
public boolean doRemoteCheck() -
setUseOtherServer
public void setUseOtherServer(boolean useOtherServer) -
useOtherServer
public boolean useOtherServer() -
setPremium
public void setPremium(boolean isPremium) -
isPremium
public boolean isPremium() -
setOtherServerUrl
-
getServerUrl
-
setRemoteUsername
-
getRemoteUsername
-
setRemoteApiKey
-
aiUrl
-
setAiUrl
-
aiModel
-
setAiModel
-
aiApiKey
-
setAiApiKey
-
useAiSupport
public boolean useAiSupport() -
setUseAiSupport
public void setUseAiSupport(boolean useAiSupport) -
aiAutoCorrect
public boolean aiAutoCorrect() -
setAiAutoCorrect
public void setAiAutoCorrect(boolean aiAutoCorrect) -
aiShowStylisticChanges
public boolean aiShowStylisticChanges() -
setAiShowStylisticChanges
public void setAiShowStylisticChanges(boolean aiShowStylisticChanges) -
getRemoteApiKey
-
getlogLevel
-
setMarkSingleCharBold
public void setMarkSingleCharBold(boolean markSingleCharBold) -
markSingleCharBold
public boolean markSingleCharBold() -
setUseLtSpellChecker
public void setUseLtSpellChecker(boolean useLtSpellChecker) -
useLtSpellChecker
public boolean useLtSpellChecker() -
setNoSynonymsAsSuggestions
public void setNoSynonymsAsSuggestions(boolean noSynonymsAsSuggestions) -
noSynonymsAsSuggestions
public boolean noSynonymsAsSuggestions() -
setIncludeTrackedChanges
public void setIncludeTrackedChanges(boolean includeTrackedChanges) -
includeTrackedChanges
public boolean includeTrackedChanges() -
setEnableTmpOffRules
public void setEnableTmpOffRules(boolean enableTmpOffRules) -
enableTmpOffRules
public boolean enableTmpOffRules() -
setEnableGoalSpecificRules
public void setEnableGoalSpecificRules(boolean enableGoalSpecificRules) -
enableGoalSpecificRules
public boolean enableGoalSpecificRules() -
setFilterOverlappingMatches
public void setFilterOverlappingMatches(boolean filterOverlappingMatches) -
filterOverlappingMatches
public boolean filterOverlappingMatches() -
setSaveLoCache
public void setSaveLoCache(boolean saveLoCache) -
saveLoCache
public boolean saveLoCache() -
getTaggerShowsDisambigLog
public boolean getTaggerShowsDisambigLog()Determines whether the tagger window will also print the disambiguation log.- Returns:
- true if the tagger window will print the disambiguation log, false otherwise
- Since:
- 3.3
-
setTaggerShowsDisambigLog
public void setTaggerShowsDisambigLog(boolean taggerShowsDisambigLog) Enables or disables the disambiguation log on the tagger window, depending on the value of the parameter taggerShowsDisambigLog.- Parameters:
taggerShowsDisambigLog- If true, the tagger window will print the- Since:
- 3.3
-
getRunServer
public boolean getRunServer() -
setRunServer
public void setRunServer(boolean runServer) -
getServerPort
public int getServerPort() -
setUseGUIConfig
public void setUseGUIConfig(boolean useGUIConfig) -
getUseGUIConfig
public boolean getUseGUIConfig() -
setServerPort
public void setServerPort(int serverPort) -
getExternalRuleDirectory
-
setExternalRuleDirectory
-
getNumParasToCheck
public int getNumParasToCheck()get the number of paragraphs to be checked for TextLevelRules- Since:
- 4.0
-
setNumParasToCheck
public void setNumParasToCheck(int numParas) set the number of paragraphs to be checked for TextLevelRules- Since:
- 4.0
-
isResetCheck
public boolean isResetCheck()will all paragraphs check after every change of text?- Since:
- 4.2
-
setDoResetCheck
public void setDoResetCheck(boolean resetCheck) set all paragraphs to be checked after every change of text- Since:
- 4.2
-
useTextLevelQueue
public boolean useTextLevelQueue()will all paragraphs not checked after every change of text if more than one document loaded?- Since:
- 4.5
-
setUseTextLevelQueue
public void setUseTextLevelQueue(boolean useTextLevelQueue) set all paragraphs to be not checked after every change of text if more than one document loaded?- Since:
- 4.5
-
setNoBackgroundCheck
public void setNoBackgroundCheck(boolean noBackgroundCheck) set option to switch off background check if true: LT engine is switched of (no marks inside of document)- Since:
- 5.2
-
saveNoBackgroundCheck
set option to switch off background check and save configuration- Throws:
IOException- Since:
- 5.2
-
noBackgroundCheck
public boolean noBackgroundCheck()return true if background check is switched of (no marks inside of document)- Since:
- 5.2
-
getCurrentProfile
get the current profile- Since:
- 4.7
-
setCurrentProfile
set the current profile- Since:
- 4.7
-
getDefinedProfiles
get the current profile- Since:
- 4.7
-
addProfile
add a new profile- Since:
- 4.7
-
addProfiles
add a list of profiles- Since:
- 4.7
-
removeProfile
remove an existing profile- Since:
- 4.7
-
setMultiThreadLO
public void setMultiThreadLO(boolean isMultiThread) run LO in multi thread mode- Since:
- 4.6
-
isMultiThread
public boolean isMultiThread()shall LO run in multi thread mode- Since:
- 4.6
-
getFontName
Returns the name of the GUI's editing textarea font.- Returns:
- the name of the font.
- Since:
- 2.6
- See Also:
-
setFontName
Sets the name of the GUI's editing textarea font.- Parameters:
fontName- the name of the font.- Since:
- 2.6
- See Also:
-
getFontStyle
public int getFontStyle()Returns the style of the GUI's editing textarea font.- Returns:
- the style of the font.
- Since:
- 2.6
- See Also:
-
setFontStyle
public void setFontStyle(int fontStyle) Sets the style of the GUI's editing textarea font.- Parameters:
fontStyle- the style of the font.- Since:
- 2.6
- See Also:
-
getFontSize
public int getFontSize()Returns the size of the GUI's editing textarea font.- Returns:
- the size of the font.
- Since:
- 2.6
- See Also:
-
setFontSize
public void setFontSize(int fontSize) Sets the size of the GUI's editing textarea font.- Parameters:
fontSize- the size of the font.- Since:
- 2.6
- See Also:
-
getLookAndFeelName
Returns the name of the GUI's LaF.- Returns:
- the name of the LaF.
- Since:
- 2.6
- See Also:
-
setLookAndFeelName
Sets the name of the GUI's LaF.- Parameters:
lookAndFeelName- the name of the LaF.- Since:
- 2.6 @see
- See Also:
-
getNgramDirectory
Directory with ngram data or null.- Since:
- 3.0
-
setNgramDirectory
Sets the directory with ngram data (may be null).- Since:
- 3.0
-
getErrorColors
- Since:
- 2.8
-
isStyleCategory
- Since:
- 4.3 Returns true if category is style like
-
initStyleCategories
- Since:
- 4.4 Initialize set of style like categories
-
isSpecialTabCategory
- Since:
- 4.3 Returns true if category is a special Tab category
-
isInSpecialTab
- Since:
- 4.3 Returns true if category is member of named special Tab
-
getSpecialTabNames
- Since:
- 4.3 Returns all special tab names
-
getSpecialTabCategories
- Since:
- 4.3 Returns all categories for a named special tab
-
getUnderlineColors
- Since:
- 4.2
-
getUnderlineRuleColors
- Since:
- 5.3
-
getUnderlineColor
- Since:
- 4.2 Get the color to underline a rule match by the Name of its category
-
setUnderlineColor
- Since:
- 4.2 Set the color to underline a rule match for its category
-
setUnderlineRuleColor
- Since:
- 5.3 Set the color to underline a rule match for this rule
-
setDefaultUnderlineColor
- Since:
- 4.2 Set the category color back to default (removes category from map)
-
setDefaultUnderlineRuleColor
- Since:
- 5.3 Set the category color back to default (removes category from map)
-
getUnderlineTypes
- Since:
- 4.9
-
getUnderlineRuleTypes
- Since:
- 5.3
-
getUnderlineType
- Since:
- 4.9 Get the type to underline a rule match by the Name of its category
-
setUnderlineType
- Since:
- 4.9 Set the type to underline a rule match for its category
-
setUnderlineRuleType
- Since:
- 5.3 Set the type to underline a rule match
-
setDefaultUnderlineType
- Since:
- 4.9 Set the type back to default (removes category from map)
-
setDefaultUnderlineRuleType
- Since:
- 5.3 Set the type back to default (removes ruleId from map)
-
getConfigurableValues
returns all configured values- Since:
- 4.2
-
getConfigValueByID
Get the configurable value of a rule by ruleID returns default value if no value is set by configuration- Since:
- 6.5
-
setConfigurableValue
Set the values for a rule by ruleID- Since:
- 6.5
-
removeConfigurableValue
Remove the configuration values of a rule by ruleID- Since:
- 6.5
-
onlySingleParagraphMode
public boolean onlySingleParagraphMode()only single paragraph mode can be used (for OO and old LO- Since:
- 5.6
-
isValidServerUrl
Test if http-server URL is correct -
isValidAiServerUrl
-
loadConfiguration
- Throws:
IOException
-
loadConfiguration
- Throws:
IOException
-
loadCurrentProfile
-
parseErrorColors
-
parseUnderlineColors
-
parseUnderlineTypes
-
parseConfigurableRuleValues
-
getQualifier
-
loadConfigForOtherLanguages
-
storeConfigKeyFromProp
-
getListFromProperties
-
saveConfiguration
- Throws:
IOException
-
addListToProperties
-
setAllProfileKeys
private void setAllProfileKeys() -
storeConfigForAllProfiles
-
saveConfigForCurrentProfile
-
saveConfigForProfile
-
importProfile
- Throws:
IOException
-
exportProfile
- Throws:
IOException
-