Class SpellCheckerMarker

  • All Implemented Interfaces:
    IMarker

    public class SpellCheckerMarker
    extends java.lang.Object
    implements IMarker
    Spell checker marker implementation. All words for displayed file will be cached, because check spelling is enough long operation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Mark> getMarksForEntry​(SourceTextEntry ste, java.lang.String sourceText, java.lang.String translationText, boolean isActive)
      Calculate marks for specific entry.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpellCheckerMarker

        public SpellCheckerMarker()
    • Method Detail

      • getMarksForEntry

        public java.util.List<Mark> getMarksForEntry​(SourceTextEntry ste,
                                                     java.lang.String sourceText,
                                                     java.lang.String translationText,
                                                     boolean isActive)
                                              throws java.lang.Exception
        Description copied from interface: IMarker
        Calculate marks for specific entry.

        Method will be called NOT in Swing thread.

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

        Specified by:
        getMarksForEntry in interface IMarker
        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:
        java.lang.Exception