Package org.omegat.gui.editor.mark
Class WhitespaceMarker
java.lang.Object
org.omegat.gui.editor.mark.WhitespaceMarker
- All Implemented Interfaces:
IMarker
Collection of Markers for whitespace symbols.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMarksForEntry(SourceTextEntry ste, String sourceText, String translationText, boolean isActive) Marker for whitespaces.booleanstatic voidstatic void
-
Constructor Details
-
WhitespaceMarker
public WhitespaceMarker()
-
-
Method Details
-
loadPlugins
public static void loadPlugins() -
unloadPlugins
public static void unloadPlugins() -
getMarksForEntry
public List<Mark> getMarksForEntry(SourceTextEntry ste, String sourceText, String translationText, boolean isActive) throws Exception Marker for whitespaces.- 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
-
isEnabled
public boolean isEnabled()
-