コード例 #1
0
  /** Initial UI update */
  public void updateUI() {
    if (amending) getHeadCommitInfo();

    commitText.setText(calculateCommitMessage(filesToCommit));
    authorText.setText(getSafeString(author));
    committerText.setText(getSafeString(committer));
    if (amending) {
      authorText.setText(previousAuthor);
      saveOriginalChangeId();
    } else {
      if (!amendAllowed) {
        originalChangeId = null;
      }
      refreshSignedOffBy();
      refreshChangeIdText();
    }
    updateSignedOffButton();
    updateChangeIdButton();
  }
コード例 #2
0
 /** update signed off and change id button from the commit message */
 public void updateSignedOffAndChangeIdButton() {
   updateSignedOffButton();
   updateChangeIdButton();
 }