Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemy Suen2010-04-18 15:54:54 +0000
committerChris Aniszczyk2010-04-20 16:25:42 +0000
commitebbaf062ba76916d2de47b91f5e12a68a2ad3a5f (patch)
treec00b309f62577e5e03e85b9cc6590593d50a4e77
parent21fe73b3c4a6449a5c59ac621c2abda3159823f2 (diff)
downloadegit-ebbaf062ba76916d2de47b91f5e12a68a2ad3a5f.tar.gz
egit-ebbaf062ba76916d2de47b91f5e12a68a2ad3a5f.tar.xz
egit-ebbaf062ba76916d2de47b91f5e12a68a2ad3a5f.zip
Correct the alignment and sizing of the dialog's buttons in the
branch selection dialog. Altered the layout of the branch selection dialog so that all of the buttons are on a single line. Also corrected the fonts of the buttons so they'd size correctly. Change-Id: I4f526e4298da822409be6ae750da9a798de9f442 Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java6
1 files changed, 6 insertions, 0 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 632d339b53..b5f00c5c0b 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
@@ -323,9 +323,15 @@ public class BranchSelectionDialog extends Dialog {
Button newButton = new Button(parent, SWT.PUSH);
newButton.setFont(JFaceResources.getDialogFont());
newButton.setText(UIText.BranchSelectionDialog_NewBranch);
+ setButtonLayoutData(newButton);
((GridLayout)parent.getLayout()).numColumns++;
+
Button renameButton = new Button(parent, SWT.PUSH);
+ renameButton.setFont(JFaceResources.getDialogFont());
renameButton.setText(UIText.BranchSelectionDialog_Rename);
+ setButtonLayoutData(renameButton);
+ ((GridLayout)parent.getLayout()).numColumns++;
+
renameButton.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
// check what ref name the user selected, if any.

Back to the top