Class TranslatorProperties
java.lang.Object
com.e1c.langtool.v8.dt.bsl.translator.TranslatorProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe constant representing the key for alphabetical order of languages in NStr (by language code).static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringA constant representing the ability to use extended keys for NStr in modules.static final StringThe constant representing the key for including tags in the Documentation comment.static final Stringstatic final StringThe constant representing the key for replacing unknown types in doc comment.static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanTells whether the alphabetical order of languages in NStr is enabled.booleanbooleanChecks if is enable extended NStr feature keys.booleanChecks if is enable tag part in doc comment.booleanChecks if is replace unknown types in documentation comment.booleanbooleanvoidread(org.osgi.service.prefs.Preferences preferences) Read preferences from the project preference store.voidsetAlphabeticalLanguageOrderInNStr(boolean alphabeticalLanguageOrderInNStr) Enables or disables the alphabetical order of languages in NStr.voidvoidsetClearCodeComments(boolean clearCodeComments) voidsetClearMethodDescriptions(boolean clearMethodDescriptions) voidsetComputeQueryResult(boolean computeQueryResult) voidsetEnableExtendedNStrFeatureKeys(boolean enableExtendedNStrFeatureKeys) Sets the enable extended NStr feature keys.voidsetEnableTagPartInDocComment(boolean enableTagPartInDocComment) Sets the enable tag part in doc comment.voidsetMaskImplicitVariables(boolean maskImplicitVariables) voidsetReplaceUnknownTypesInDocumentationComment(boolean value) Enables or disables the replace unknown types in documentation comment.voidsetStringLiteralLinesFullTranslationStoredPriority(boolean stringLiteralLinesFullTranslationStoredPriority)
-
Field Details
-
MASK_IMPLICIT_VARIABLES
- See Also:
-
CLEAR_CODE_COMMENTS
- See Also:
-
CLEAR_METHOD_DESCRIPTIONS
- See Also:
-
CHECK_VARIABLE_DUPLICATES_RESOLVE_LEVEL
- See Also:
-
STRING_LITERAL_LINES_FULL_TRANSLATION_STORED_PRIORITY
- See Also:
-
COMPUTE_QUERY_RESULT
- See Also:
-
ENABLE_EXTENDED_NSTR_FEATURE_KEYS
A constant representing the ability to use extended keys for NStr in modules. The new keys are very unique.- See Also:
-
ENABLE_TAGPART_IN_DOC_COMMENT
The constant representing the key for including tags in the Documentation comment.- See Also:
-
ALPHABETICAL_LANGUAGE_ORDER_IN_NSTR
The constant representing the key for alphabetical order of languages in NStr (by language code).- See Also:
-
REPLACE_UNKNOWN_TYPES_IN_DOCUMENTATION_COMMENT
The constant representing the key for replacing unknown types in doc comment.- See Also:
-
-
Constructor Details
-
TranslatorProperties
public TranslatorProperties(org.eclipse.core.resources.IProject project) - Parameters:
project-
-
-
Method Details
-
maskImplicitVariables
public boolean maskImplicitVariables() -
clearCodeComments
public boolean clearCodeComments() -
clearMethodDescriptions
public boolean clearMethodDescriptions() -
getCheckVariableDuplicatesResolveLevel
-
setMaskImplicitVariables
public void setMaskImplicitVariables(boolean maskImplicitVariables) -
setClearCodeComments
public void setClearCodeComments(boolean clearCodeComments) -
setClearMethodDescriptions
public void setClearMethodDescriptions(boolean clearMethodDescriptions) -
setCheckVariableDuplicatesResolveLevel
-
isStringLiteralLinesFullTranslationStoredPriority
public boolean isStringLiteralLinesFullTranslationStoredPriority() -
isEnableExtendedNStrFeatureKeys
public boolean isEnableExtendedNStrFeatureKeys()Checks if is enable extended NStr feature keys.- Returns:
true, if is enable extended NStr feature keys
-
setEnableExtendedNStrFeatureKeys
public void setEnableExtendedNStrFeatureKeys(boolean enableExtendedNStrFeatureKeys) Sets the enable extended NStr feature keys.- Parameters:
enableExtendedNStrFeatureKeys- the new enable extended NStr feature keys
-
setStringLiteralLinesFullTranslationStoredPriority
public void setStringLiteralLinesFullTranslationStoredPriority(boolean stringLiteralLinesFullTranslationStoredPriority) -
isComputeQueryResult
public boolean isComputeQueryResult() -
setComputeQueryResult
public void setComputeQueryResult(boolean computeQueryResult) -
isEnableTagPartInDocComment
public boolean isEnableTagPartInDocComment()Checks if is enable tag part in doc comment.- Returns:
true, if is enable tag part in doc comment
-
setEnableTagPartInDocComment
public void setEnableTagPartInDocComment(boolean enableTagPartInDocComment) Sets the enable tag part in doc comment.- Parameters:
enableTagPartInDocComment- the new enable tag part in doc comment
-
isAlphabeticalLanguageOrderInNStr
public boolean isAlphabeticalLanguageOrderInNStr()Tells whether the alphabetical order of languages in NStr is enabled.- Returns:
trueif the alphabetical order of languages in NStr is enabled,falseotherwise
-
setAlphabeticalLanguageOrderInNStr
public void setAlphabeticalLanguageOrderInNStr(boolean alphabeticalLanguageOrderInNStr) Enables or disables the alphabetical order of languages in NStr.- Parameters:
alphabeticalLanguageOrderInNStr-trueto enable the alphabetical order of languages in NStr,falseotherwise
-
isReplaceUnknownTypesInDocumentationComment
public boolean isReplaceUnknownTypesInDocumentationComment()Checks if is replace unknown types in documentation comment.- Returns:
true, if is replace unknown types in documentation comment
-
setReplaceUnknownTypesInDocumentationComment
public void setReplaceUnknownTypesInDocumentationComment(boolean value) Enables or disables the replace unknown types in documentation comment.- Parameters:
value- the new replace unknown types in documentation comment
-
read
public void read(org.osgi.service.prefs.Preferences preferences) Read preferences from the project preference store.- Parameters:
preferences- the preferences
-