Modifier and Type | Field and Description |
---|---|
protected static javax.swing.text.AttributeSet |
ATTRIBUTES_LTR |
protected static javax.swing.text.Highlighter.HighlightPainter |
PAINTER_RTL |
Constructor and Description |
---|
ProtectedPartsMarker() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Mark> |
getMarksForEntry(SourceTextEntry ste,
java.lang.String sourceText,
java.lang.String translationText,
boolean isActive)
Calculate marks for specific entry.
|
protected static final javax.swing.text.Highlighter.HighlightPainter PAINTER_RTL
protected static final javax.swing.text.AttributeSet ATTRIBUTES_LTR
public java.util.List<Mark> getMarksForEntry(SourceTextEntry ste, java.lang.String sourceText, java.lang.String translationText, boolean isActive) throws java.lang.Exception
IMarker
Method will be called NOT in Swing thread.
Note to implementers: Both sourceText
and translationText
might be null!
getMarksForEntry
in interface IMarker
sourceText
- might be null!translationText
- might be null!isActive
- is this an active segment in the document?java.lang.Exception