Package org.eclipse.egit.ui.internal.rebase

Examples of org.eclipse.egit.ui.internal.rebase.CommitMessageEditorDialog


  private String promptCommitMessage(final Shell shell, RevCommit commit) {
    final String[] message = { commit.getFullMessage() };
    shell.getDisplay().syncExec(new Runnable() {
      public void run() {
        CommitMessageEditorDialog dialog = new CommitMessageEditorDialog(
            shell, message[0]);
        if (dialog.open() == Window.OK)
          message[0] = dialog.getCommitMessage();
        else
          message[0] = null;
      }
    });
    return message[0];
View Full Code Here


  private String promptCommitMessage(final Shell shell, final String message) {
    final String[] msg = { message };
    shell.getDisplay().syncExec(new Runnable() {
      public void run() {
        CommitMessageEditorDialog dialog = new CommitMessageEditorDialog(
            shell, msg[0]);
        if (dialog.open() == Window.OK)
          msg[0] = dialog.getCommitMessage();
        else
          msg[0] = message;
      }
    });
    return msg[0];
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.rebase.CommitMessageEditorDialog

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.