Package org.omegat.core.spellchecker
Class SpellCheckerMarker
java.lang.Object
org.omegat.core.spellchecker.SpellCheckerMarker
- All Implemented Interfaces:
IMarker
Spell checker marker implementation. All words for displayed file will be
cached, because check spelling is enough long operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMarksForEntry(SourceTextEntry ste, String sourceText, String translationText, boolean isActive) Calculate marks for specific entry.
-
Constructor Details
-
SpellCheckerMarker
public SpellCheckerMarker()
-
-
Method Details
-
getMarksForEntry
@Nullable public @Nullable List<Mark> getMarksForEntry(SourceTextEntry ste, String sourceText, String translationText, boolean isActive) throws Exception Description copied from interface:IMarkerCalculate marks for specific entry.Method will be called NOT in Swing thread.
Note to implementers: Both
sourceTextandtranslationTextmight be null!- Specified by:
getMarksForEntryin interfaceIMarker- Parameters:
ste- entry to calculate marks forsourceText- 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
-