Class TranslatorProperties

java.lang.Object
com.e1c.langtool.v8.dt.bsl.translator.TranslatorProperties

public class TranslatorProperties extends Object
  • Field Details

    • MASK_IMPLICIT_VARIABLES

      public static final String MASK_IMPLICIT_VARIABLES
      See Also:
    • CLEAR_CODE_COMMENTS

      public static final String CLEAR_CODE_COMMENTS
      See Also:
    • CLEAR_METHOD_DESCRIPTIONS

      public static final String CLEAR_METHOD_DESCRIPTIONS
      See Also:
    • CHECK_VARIABLE_DUPLICATES_RESOLVE_LEVEL

      public static final String CHECK_VARIABLE_DUPLICATES_RESOLVE_LEVEL
      See Also:
    • STRING_LITERAL_LINES_FULL_TRANSLATION_STORED_PRIORITY

      public static final String STRING_LITERAL_LINES_FULL_TRANSLATION_STORED_PRIORITY
      See Also:
    • COMPUTE_QUERY_RESULT

      public static final String COMPUTE_QUERY_RESULT
      See Also:
    • ENABLE_EXTENDED_NSTR_FEATURE_KEYS

      public static final String 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

      public static final String ENABLE_TAGPART_IN_DOC_COMMENT
      The constant representing the key for including tags in the Documentation comment.
      See Also:
    • ALPHABETICAL_LANGUAGE_ORDER_IN_NSTR

      public static final String 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

      public static final String 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

      public VariableDuplicatesResolveLevel getCheckVariableDuplicatesResolveLevel()
    • setMaskImplicitVariables

      public void setMaskImplicitVariables(boolean maskImplicitVariables)
    • setClearCodeComments

      public void setClearCodeComments(boolean clearCodeComments)
    • setClearMethodDescriptions

      public void setClearMethodDescriptions(boolean clearMethodDescriptions)
    • setCheckVariableDuplicatesResolveLevel

      public void setCheckVariableDuplicatesResolveLevel(VariableDuplicatesResolveLevel value)
    • 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:
      true if the alphabetical order of languages in NStr is enabled, false otherwise
    • setAlphabeticalLanguageOrderInNStr

      public void setAlphabeticalLanguageOrderInNStr(boolean alphabeticalLanguageOrderInNStr)
      Enables or disables the alphabetical order of languages in NStr.
      Parameters:
      alphabeticalLanguageOrderInNStr - true to enable the alphabetical order of languages in NStr, false otherwise
    • 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