Package org.omegat.gui.editor.mark
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 Summary
Modifier and TypeMethodDescriptiongetMarksForEntry(SourceTextEntry ste, String sourceText, String translationText, boolean isActive) Calculate marks for specific entry.
-
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
sourceTextandtranslationTextmight be null!- 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
-