Package org.eclipse.egit.ui.internal.commit

Examples of org.eclipse.egit.ui.internal.commit.CommitHelper$CommitInfo


        deleteCommitMessageComponentState();
    if (!indexDiffAvailable)
      return; // only try to restore the stored repo commit message if
          // indexDiff is ready

    CommitHelper helper = new CommitHelper(currentRepository);
    CommitMessageComponentState oldState = null;
    if (repositoryChanged
        || commitMessageComponent.getRepository() != currentRepository) {
      oldState = loadCommitMessageComponentState();
      commitMessageComponent.setRepository(currentRepository);
      if (oldState == null)
        loadInitialState(helper);
      else
        loadExistingState(helper, oldState);
    } else { // repository did not change
      if (!commitMessageComponent.isAmending()
          && userEnteredCommitMessage()) {
        if (!commitMessageComponent.getHeadCommit().equals(
            helper.getPreviousCommit()))
          addHeadChangedWarning(commitMessageComponent
              .getCommitMessage());
      } else
        loadInitialState(helper);
    }
    amendPreviousCommitAction.setChecked(commitMessageComponent
        .isAmending());
    amendPreviousCommitAction.setEnabled(helper.amendAllowed());
    updateMessage();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.commit.CommitHelper$CommitInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.