Interface RebaseAndCommit.IRebase

Enclosing class:
RebaseAndCommit

public static interface RebaseAndCommit.IRebase
  • Method Summary

    Modifier and Type
    Method
    Description
    Construct commit message.
    Get charset of file for convert EOL to repository.
    void
    Rebaser should read and parse BASE version of file.
    void
    Rebaser should read and parse HEAD version of file.
    void
    Rebase using BASE, HEAD and non-committed version should be processed.
    void
    reload(File file)
    Reload projectTMX from resulted TMX.
  • Method Details

    • parseBaseFile

      void parseBaseFile(File file) throws Exception
      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

      void parseHeadFile(File file) throws Exception
      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

      void rebaseAndSave(File out) throws Exception
      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

      void reload(File file) throws Exception
      Reload projectTMX from resulted TMX.
      Throws:
      Exception
    • getCommentForCommit

      String getCommentForCommit()
      Construct commit message.
    • getFileCharset

      String getFileCharset(File file) throws Exception
      Get charset of file for convert EOL to repository. Implementation can return null if conversion not required.
      Throws:
      Exception