summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorRobin Stocker2011-05-09 09:27:46 (EDT)
committer Matthias Sohn2011-05-09 09:27:46 (EDT)
commit6581605e4deeacff47cbf685aa4abdaae3e7148d (patch)
tree686db5bfb37e9477b8bb4334e978aa6729cf29b6
parentb96c067357975606c6b6a599d0a0812bfcde351c (diff)
downloadegit-6581605e4deeacff47cbf685aa4abdaae3e7148d.zip
egit-6581605e4deeacff47cbf685aa4abdaae3e7148d.tar.gz
egit-6581605e4deeacff47cbf685aa4abdaae3e7148d.tar.bz2
Fix "Create Branch..." button width in create branch dialogrefs/changes/57/3357/2
Change-Id: Ibb4613d4ba15d1a096930414cf3febed9da547bb Signed-off-by: Robin Stocker <robin@nibor.org> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CreateBranchDialog.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CreateBranchDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CreateBranchDialog.java
index 914d44d..5739193 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CreateBranchDialog.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CreateBranchDialog.java
@@ -11,6 +11,7 @@
package org.eclipse.egit.ui.internal.dialogs;
import org.eclipse.egit.ui.UIText;
+import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.window.Window;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.swt.widgets.Composite;
@@ -52,9 +53,7 @@ public class CreateBranchDialog extends AbstractBranchSelectionDialog {
@Override
protected void createButtonsForButtonBar(Composite parent) {
- super.createButtonsForButtonBar(parent);
- getButton(Window.OK).setText(UIText.CreateBranchDialog_OKButtonText);
+ createButton(parent, IDialogConstants.OK_ID, UIText.CreateBranchDialog_OKButtonText, true);
+ createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}
-
-
}