Class WhitespaceMarker

java.lang.Object
org.omegat.gui.editor.mark.WhitespaceMarker
All Implemented Interfaces:
IMarker

public final class WhitespaceMarker extends Object implements IMarker
Collection of Markers for whitespace symbols.
  • 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:
      getMarksForEntry in interface IMarker
      Parameters:
      ste - entry to calculate marks for
      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:
      Exception - if something went wrong
    • isEnabled

      public boolean isEnabled()