Class EditorSettings

java.lang.Object
org.omegat.gui.editor.EditorSettings
All Implemented Interfaces:
IEditorSettings

public class EditorSettings extends Object implements IEditorSettings
Editor behavior control settings.
  • Field Details

  • Method Details

    • getAdvancerChar

      public char getAdvancerChar()
    • isUseTabForAdvance

      public boolean isUseTabForAdvance()
      Specified by:
      isUseTabForAdvance in interface IEditorSettings
    • setUseTabForAdvance

      public void setUseTabForAdvance(boolean useTabForAdvance)
      Specified by:
      setUseTabForAdvance in interface IEditorSettings
    • isMarkTranslated

      public boolean isMarkTranslated()
      Specified by:
      isMarkTranslated in interface IEditorSettings
    • setMarkTranslated

      public void setMarkTranslated(boolean markTranslated)
      Specified by:
      setMarkTranslated in interface IEditorSettings
    • isMarkUntranslated

      public boolean isMarkUntranslated()
      Specified by:
      isMarkUntranslated in interface IEditorSettings
    • isMarkAutoPopulated

      public boolean isMarkAutoPopulated()
      Specified by:
      isMarkAutoPopulated in interface IEditorSettings
    • setMarkAutoPopulated

      public void setMarkAutoPopulated(boolean val)
      Specified by:
      setMarkAutoPopulated in interface IEditorSettings
    • setMarkUntranslated

      public void setMarkUntranslated(boolean markUntranslated)
      Specified by:
      setMarkUntranslated in interface IEditorSettings
    • isDisplaySegmentSources

      public boolean isDisplaySegmentSources()
      display the segment sources or not
      Specified by:
      isDisplaySegmentSources in interface IEditorSettings
    • isMarkNonUniqueSegments

      public boolean isMarkNonUniqueSegments()
      Specified by:
      isMarkNonUniqueSegments in interface IEditorSettings
    • isHideDuplicateSegments

      public boolean isHideDuplicateSegments()
    • isMarkNotedSegments

      public boolean isMarkNotedSegments()
      Specified by:
      isMarkNotedSegments in interface IEditorSettings
    • isMarkNBSP

      public boolean isMarkNBSP()
      mark non-breakable spaces?
      Specified by:
      isMarkNBSP in interface IEditorSettings
      Returns:
      true when set, false otherwise
    • isMarkWhitespace

      public boolean isMarkWhitespace()
      mark whitespace?
      Specified by:
      isMarkWhitespace in interface IEditorSettings
      Returns:
      true when set, false otherwise
    • isMarkBidi

      public boolean isMarkBidi()
      mark Bidirectional control characters
      Specified by:
      isMarkBidi in interface IEditorSettings
      Returns:
      true when set, false otherwise
    • isMarkAltTranslations

      public boolean isMarkAltTranslations()
      Specified by:
      isMarkAltTranslations in interface IEditorSettings
    • isDoFontFallback

      public boolean isDoFontFallback()
      Specified by:
      isDoFontFallback in interface IEditorSettings
    • setDisplaySegmentSources

      public void setDisplaySegmentSources(boolean displaySegmentSources)
      Specified by:
      setDisplaySegmentSources in interface IEditorSettings
    • setMarkNonUniqueSegments

      public void setMarkNonUniqueSegments(boolean markNonUniqueSegments)
      Specified by:
      setMarkNonUniqueSegments in interface IEditorSettings
    • setMarkNotedSegments

      public void setMarkNotedSegments(boolean markNotedSegments)
      Specified by:
      setMarkNotedSegments in interface IEditorSettings
    • setMarkNBSP

      public void setMarkNBSP(boolean markNBSP)
      Specified by:
      setMarkNBSP in interface IEditorSettings
    • setMarkWhitespace

      public void setMarkWhitespace(boolean markWhitespace)
      Specified by:
      setMarkWhitespace in interface IEditorSettings
    • setMarkParagraphDelimitations

      public void setMarkParagraphDelimitations(boolean delimitations)
      Specified by:
      setMarkParagraphDelimitations in interface IEditorSettings
    • isMarkParagraphDelimitations

      public boolean isMarkParagraphDelimitations()
      Specified by:
      isMarkParagraphDelimitations in interface IEditorSettings
    • setMarkBidi

      public void setMarkBidi(boolean markBidi)
      Specified by:
      setMarkBidi in interface IEditorSettings
    • setMarkAltTranslations

      public void setMarkAltTranslations(boolean markAltTranslations)
      Specified by:
      setMarkAltTranslations in interface IEditorSettings
    • setDoFontFallback

      public void setDoFontFallback(boolean doFontFalback)
      Specified by:
      setDoFontFallback in interface IEditorSettings
    • isMarkGlossaryMatches

      public boolean isMarkGlossaryMatches()
      Specified by:
      isMarkGlossaryMatches in interface IEditorSettings
    • setMarkGlossaryMatches

      public void setMarkGlossaryMatches(boolean markGlossaryMatches)
      Specified by:
      setMarkGlossaryMatches in interface IEditorSettings
    • isMarkLanguageChecker

      public boolean isMarkLanguageChecker()
      Specified by:
      isMarkLanguageChecker in interface IEditorSettings
    • setMarkLanguageChecker

      public void setMarkLanguageChecker(boolean markLanguageChecker)
      Specified by:
      setMarkLanguageChecker in interface IEditorSettings
    • getDisplayModificationInfo

      public String getDisplayModificationInfo()
      returns the setting for display the modification information or not Either DISPLAY_MODIFICATION_INFO_NONE, DISPLAY_MODIFICATION_INFO_SELECTED, DISPLAY_MODIFICATION_INFO_ALL
      Specified by:
      getDisplayModificationInfo in interface IEditorSettings
    • setDisplayModificationInfo

      public void setDisplayModificationInfo(String displayModificationInfo)
      Sets the setting for display the modification information or not
      Specified by:
      setDisplayModificationInfo in interface IEditorSettings
      Parameters:
      displayModificationInfo - Either DISPLAY_MODIFICATION_INFO_NONE , DISPLAY_MODIFICATION_INFO_SELECTED , DISPLAY_MODIFICATION_INFO_ALL
    • isAutoSpellChecking

      public boolean isAutoSpellChecking()
      need to check spell or not
      Specified by:
      isAutoSpellChecking in interface IEditorSettings
    • setAutoSpellChecking

      public void setAutoSpellChecking(boolean autoSpellChecking)
      Specified by:
      setAutoSpellChecking in interface IEditorSettings
    • updateViewPreferences

      public void updateViewPreferences()
      repaint segments in editor according to new view options. Use when options change to make them effective immediately.
      Specified by:
      updateViewPreferences in interface IEditorSettings
    • updateTagValidationPreferences

      public void updateTagValidationPreferences()
      repaint segments in editor according to new view tag validation options. Use when options change to make them effective immediately.
      Specified by:
      updateTagValidationPreferences in interface IEditorSettings
    • getAttributeSet

      public AttributeSet getAttributeSet(boolean isSource, boolean isPlaceholder, boolean isRemoveText, SourceTextEntry.DUPLICATE duplicate, boolean active, boolean translationExists, boolean hasNote, boolean isNBSP)
      Choose segment's attributes based on rules.
      Parameters:
      isSource - is it a source segment or a target segment
      isPlaceholder - is it for a placeholder (OmegaT tag or sprintf-variable etc.) or regular text inside the segment?
      isRemoveText - is it text that should be removed from translation?
      duplicate - is the sourceTextEntry a duplicate or not? values: DUPLICATE.NONE, DUPLICATE.FIRST or DUPLICATE.NEXT. See sourceTextEntryste.getDuplicate()
      active - is it an active segment?
      translationExists - does a translation already exist
      isNBSP - is the text a non-breakable space
      Returns:
      proper AttributeSet to use on displaying the segment.
    • getParagraphStartAttributeSet

      public AttributeSet getParagraphStartAttributeSet()
      Returns font attributes for paragraph start
      Returns:
    • getModificationInfoAttributeSet

      public AttributeSet getModificationInfoAttributeSet()
      Returns font attributes for the modification info line.
      Returns:
    • getSegmentMarkerAttributeSet

      public AttributeSet getSegmentMarkerAttributeSet()
      Returns font attributes for the segment marker.
      Returns:
    • getOtherLanguageTranslationAttributeSet

      public AttributeSet getOtherLanguageTranslationAttributeSet()
      Returns font attributes for other languages translation.
      Returns: