Package org.omegat.core.team2
Interface RebaseAndCommit.IRebase
- Enclosing class:
- RebaseAndCommit
public static interface RebaseAndCommit.IRebase
-
Method Summary
Modifier and TypeMethodDescriptionConstruct commit message.getFileCharset(File file) Get charset of file for convert EOL to repository.voidparseBaseFile(File file) Rebaser should read and parse BASE version of file.voidparseHeadFile(File file) Rebaser should read and parse HEAD version of file.voidrebaseAndSave(File out) Rebase using BASE, HEAD and non-committed version should be processed.voidReload projectTMX from resulted TMX.
-
Method Details
-
parseBaseFile
Rebaser should read and parse BASE version of file. It can't just remember file path because file will be removed after switch into other version. Rebase can be called after that or can not be called.Case for non-exist file: it's correct call. That means file is just created in local box. But after that, remote repository can also contain file, i.e. two users created file independently, then rebase will be called. Implementation should interpret non-exist file as empty data.
- Throws:
Exception
-
parseHeadFile
Rebaser should read and parse HEAD version of file. It can't just remember file path because file will be removed after switch into other version. Rebase can be called after that or can not be called.Case for non-exist file: it's correct call. That means file was removed from repository. Implementation should interpret non-exist file as empty data.
- Throws:
Exception
-
rebaseAndSave
Rebase using BASE, HEAD and non-committed version should be processed. At this time parseBaseFile and parseHeadFile was already called. Keep in mind that this method can display some dialogs to user, i.e. can work up to some minutes.- Throws:
Exception
-
reload
Reload projectTMX from resulted TMX.- Throws:
Exception
-
getCommentForCommit
String getCommentForCommit()Construct commit message. -
getFileCharset
Get charset of file for convert EOL to repository. Implementation can return null if conversion not required.- Throws:
Exception
-