Class ComesFromMTMarker

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

public class ComesFromMTMarker extends Object implements IMarker
Marker for be able to add marks when a match is inserted from such a TMX manually. TMX should be in tm/mt/ folder.
  • Constructor Details

    • ComesFromMTMarker

      public ComesFromMTMarker()
  • Method Details

    • setMark

      public void setMark(SourceTextEntry ste, String text)
    • getMarksForEntry

      public List<Mark> getMarksForEntry(SourceTextEntry ste, String sourceText, String translationText, boolean isActive)
      Description copied from interface: IMarker
      Calculate marks for specific entry.

      Method will be called NOT in Swing thread.

      Note to implementers: Both sourceText and translationText might be null!

      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