Package org.eclipse.egit.ui.internal.dialogs

Examples of org.eclipse.egit.ui.internal.dialogs.CommitSelectDialog


      for (PreviousCommit pc : previousList)
        commits.add(pc.commit);
      HandlerUtil.getActiveShell(event).getDisplay()
          .syncExec(new Runnable() {
            public void run() {
              CommitSelectDialog dlg = new CommitSelectDialog(
                  HandlerUtil.getActiveShell(event), commits);
              if (dlg.open() == Window.OK)
                for (PreviousCommit pc : previousList)
                  if (pc.commit.equals(dlg
                      .getSelectedCommit())) {
                    previous.set(pc);
                    break;
                  }
            }
View Full Code Here


                MessageFormat
                    .format(UIText.ReplaceWithPreviousActionHandler_NoParentCommitDialogMessage,
                        resources[0].getName()));
        throw new OperationCanceledException();
      } else if (parentCount > 1) {
        CommitSelectDialog dlg = new CommitSelectDialog(
            getShell(event), previousCommits);
        if (dlg.open() == Window.OK)
          return dlg.getSelectedCommit().getName();
        else
          throw new OperationCanceledException();
      } else
        return previousCommits.get(0).getName();
    } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.dialogs.CommitSelectDialog

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.