Interface IMarker

All Known Implementing Classes:
AbstractMarker, AltTranslationsMarker, BidiMarkers, ComesFromAutoTMMarker, ComesFromMTMarker, FontFallbackMarker, NBSPMarker, ProtectedPartsMarker, RemoveTagMarker, ReplaceMarker, SpellCheckerMarker, TransTipsMarker, WhitespaceMarker

public interface IMarker
Interface to calculate marks in editor.
  • Method Details

    • getMarksForEntry

      List<Mark> getMarksForEntry(SourceTextEntry ste, String sourceText, String translationText, boolean isActive) throws Exception
      Calculate marks for specific entry.

      Method will be called NOT in Swing thread.

      Note to implementers: Both sourceText and translationText might be null!

      Parameters:
      ste - entry to calculate marks for
      sourceText - might be null!
      translationText - might be null!
      isActive - is this an active segment in the document?
      Returns:
      null if nothing changed, or list of new marks. Empty list must be returned if marks shouldn't be displayed
      Throws:
      Exception - if something went wrong