protected class RealProject.LoadFilesCallback extends ParseEntry
ParseEntry.ParseEntryQueueItem, ParseEntry.ParseEntryResult
Constructor and Description |
---|
LoadFilesCallback(java.util.Set<java.lang.String> existSource,
java.util.Set<EntryKey> existKeys,
java.util.Map<java.lang.String,ExternalTMX> externalTms) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSegment(java.lang.String id,
short segmentIndex,
java.lang.String segmentSource,
java.util.List<ProtectedPart> protectedParts,
java.lang.String segmentTranslation,
boolean segmentTranslationFuzzy,
java.lang.String[] props,
java.lang.String prevSegment,
java.lang.String nextSegment,
java.lang.String path)
Adds a segment to the project.
|
void |
fileFinished() |
void |
setCurrentFile(IProject.FileInfo fi) |
addEntry, addEntry, addEntryWithProperties, linkPrevNextSegments, stripSomeChars
public LoadFilesCallback(java.util.Set<java.lang.String> existSource, java.util.Set<EntryKey> existKeys, java.util.Map<java.lang.String,ExternalTMX> externalTms)
public void setCurrentFile(IProject.FileInfo fi)
setCurrentFile
in class ParseEntry
public void fileFinished()
fileFinished
in class ParseEntry
protected void addSegment(java.lang.String id, short segmentIndex, java.lang.String segmentSource, java.util.List<ProtectedPart> protectedParts, java.lang.String segmentTranslation, boolean segmentTranslationFuzzy, java.lang.String[] props, java.lang.String prevSegment, java.lang.String nextSegment, java.lang.String path)
addSegment
in class ParseEntry
id
- ID of entry, if format supports itsegmentIndex
- Number of the segment-part of the original source string.segmentSource
- Translatable source stringprotectedParts
- protected partssegmentTranslation
- translation of the source string, if format supports itsegmentTranslationFuzzy
- fuzzy flag of translation of the source string, if format
supports itprops
- entry's properties, like comments, if format supports itprevSegment
- previous segment's textnextSegment
- next segment's textpath
- path of segment