Package org.omegat.gui.editor
Class SegmentExportImport
- java.lang.Object
-
- org.omegat.gui.editor.SegmentExportImport
-
public class SegmentExportImport extends java.lang.ObjectClass for export current segment and monitor changes for import if external script produce some results.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSELECTION_EXPORTThe name of the file with the exported selectionstatic java.lang.StringSOURCE_EXPORTThe name of the file with the source exported segmentstatic java.lang.StringTARGET_EXPORTThe name of the file with the target exported segment
-
Constructor Summary
Constructors Constructor Description SegmentExportImport(EditorController controller)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexportCurrentSegment(SourceTextEntry ste)Export the current source and target segments in text files.static voidexportCurrentSelection(java.lang.String selection)static voidflushExportedSegments()Empties the exported segments.
-
-
-
Field Detail
-
SELECTION_EXPORT
public static final java.lang.String SELECTION_EXPORT
The name of the file with the exported selection- See Also:
- Constant Field Values
-
TARGET_EXPORT
public static final java.lang.String TARGET_EXPORT
The name of the file with the target exported segment- See Also:
- Constant Field Values
-
SOURCE_EXPORT
public static final java.lang.String SOURCE_EXPORT
The name of the file with the source exported segment- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SegmentExportImport
public SegmentExportImport(EditorController controller)
-
-
Method Detail
-
exportCurrentSegment
public void exportCurrentSegment(SourceTextEntry ste)
Export the current source and target segments in text files.
-
exportCurrentSelection
public static void exportCurrentSelection(java.lang.String selection)
-
flushExportedSegments
public static void flushExportedSegments()
Empties the exported segments.
-
-