Package org.omegat.gui.editor.mark
Interface IMarker
-
- All Known Implementing Classes:
AbstractMarker
,BidiMarkers
,ComesFromAutoTMMarker
,ComesFromMTMarker
,FontFallbackMarker
,NBSPMarker
,ProtectedPartsMarker
,RemoveTagMarker
,ReplaceMarker
,SpellCheckerMarker
,TransTipsMarker
,WhitespaceMarkerFactory.LFMarker
,WhitespaceMarkerFactory.SpaceMarker
,WhitespaceMarkerFactory.TabMarker
public interface IMarker
Interface to calculate marks in editor.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getMarksForEntry
java.util.List<Mark> getMarksForEntry(SourceTextEntry ste, java.lang.String sourceText, java.lang.String translationText, boolean isActive) throws java.lang.Exception
Calculate marks for specific entry.Method will be called NOT in Swing thread.
Note to implementers: Both
sourceText
andtranslationText
might be null!- Parameters:
ste
-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
-
-