Class SegmentExportImport

java.lang.Object
org.omegat.gui.editor.SegmentExportImport

public class SegmentExportImport extends Object
Class for export current segment and monitor changes for import if external script produce some results.
  • Field Details

    • SELECTION_EXPORT

      public static final String SELECTION_EXPORT
      The name of the file with the exported selection
      See Also:
    • TARGET_EXPORT

      public static final String TARGET_EXPORT
      The name of the file with the target exported segment
      See Also:
    • SOURCE_EXPORT

      public static final String SOURCE_EXPORT
      The name of the file with the source exported segment
      See Also:
  • Constructor Details

    • SegmentExportImport

      public SegmentExportImport(IEditor controller)
  • Method Details

    • exportCurrentSegment

      public void exportCurrentSegment(@Nullable SourceTextEntry ste)
      Export the current source and target segments in text files.
    • exportCurrentSelection

      public static void exportCurrentSelection(String selection)
    • flushExportedSegments

      public static void flushExportedSegments()
      Empties the exported segments.