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

Examples of org.eclipse.egit.ui.internal.dialogs.AbstractBranchSelectionDialog.open()


      public void widgetSelected(SelectionEvent selectionEvent) {
        String txt = branchText.getText();
        String refToMark = "".equals(txt) ? null : Constants.R_HEADS + txt; //$NON-NLS-1$
        AbstractBranchSelectionDialog dlg = new BranchEditDialog(
            checkoutGroup.getShell(), repository, refToMark);
        if (dlg.open() == Window.OK) {
          branchText.setText(Repository.shortenRefName(dlg
              .getRefName()));
        } else {
          // force calling branchText's modify listeners
          branchText.setText(branchText.getText());
View Full Code Here


      return null;
    default:
      return null;
    }

    if (dialog.open() != Window.OK) {
      return null;
    }
    return dialog.getRefName();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.