Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDariusz Luksza2010-09-03 18:16:35 +0000
committerDariusz Luksza2010-09-03 18:16:35 +0000
commit2b23e7efc21cec33dc79404f91a063850740e2ce (patch)
tree3dc658e39d904bc9b2a281bfea829b1bbd710a89
parentb969b6b8cdd652c1fe41a4b856c48be8d9a632a0 (diff)
downloadegit-2b23e7efc21cec33dc79404f91a063850740e2ce.tar.gz
egit-2b23e7efc21cec33dc79404f91a063850740e2ce.tar.xz
egit-2b23e7efc21cec33dc79404f91a063850740e2ce.zip
Load branch name in branch rename dialog
This is a small usability improvement. It loads branch name in rename dialog. Change-Id: Ibc2c8e90ffaf05296fb07fdd6882b82699521b5b Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java
index 4659a9e6de..32819a4c4a 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java
@@ -54,10 +54,10 @@ public class BranchSelectionDialog extends AbstractBranchSelectionDialog {
}
private InputDialog getRefNameInputDialog(String prompt,
- final String refPrefix) {
+ final String refPrefix, String initialValue) {
InputDialog labelDialog = new InputDialog(getShell(),
UIText.BranchSelectionDialog_QuestionNewBranchTitle, prompt,
- null, ValidationUtils.getRefNameInputValidator(repo, refPrefix, true));
+ initialValue, ValidationUtils.getRefNameInputValidator(repo, refPrefix, true));
labelDialog.setBlockOnOpen(true);
return labelDialog;
}
@@ -99,7 +99,7 @@ public class BranchSelectionDialog extends AbstractBranchSelectionDialog {
NLS
.bind(
UIText.BranchSelectionDialog_QuestionNewBranchNameMessage,
- branchName, refPrefix), refPrefix);
+ branchName, refPrefix), refPrefix, branchName);
if (labelDialog.open() == Window.OK) {
String newRefName = refPrefix + labelDialog.getValue();
try {
@@ -130,7 +130,7 @@ public class BranchSelectionDialog extends AbstractBranchSelectionDialog {
InputDialog labelDialog = getRefNameInputDialog(NLS.bind(
UIText.BranchSelectionDialog_QuestionNewBranchMessage,
- refName, Constants.R_HEADS), Constants.R_HEADS);
+ refName, Constants.R_HEADS), Constants.R_HEADS, null);
if (labelDialog.open() == Window.OK) {
String newRefName = Constants.R_HEADS

Back to the top