Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-12-02 16:51:47 +0000
committerDariusz Luksza2011-12-02 16:51:47 +0000
commit8162a566175e33ad132548e3933417db41749acc (patch)
treeb02190d3905a602c4dbebb9f0b66ca3bf4440018
parent25ea320918635f8a42bce9f0625592004e3edee2 (diff)
downloadegit-8162a566175e33ad132548e3933417db41749acc.tar.gz
egit-8162a566175e33ad132548e3933417db41749acc.tar.xz
egit-8162a566175e33ad132548e3933417db41749acc.zip
Update command id used to delete branches in checkout dialog
Standard Eclipse delete command id is now used instead of a custom delete branch command id. Change-Id: I57f4d05b358541d5cc3f0634a970c9eca801d818 Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CheckoutDialog.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CheckoutDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CheckoutDialog.java
index 37b7ad16d1..081b8d322c 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CheckoutDialog.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CheckoutDialog.java
@@ -39,6 +39,7 @@ import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IWorkbenchCommandConstants;
/**
* Dialog for checking out a branch, tag, or Reference.
@@ -201,10 +202,9 @@ public class CheckoutDialog extends AbstractBranchSelectionDialog {
deleteteButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent selectionEvent) {
try {
- CommonUtils
- .runCommand(
- "org.eclipse.egit.ui.RepositoriesViewDeleteBranch", //$NON-NLS-1$
- (IStructuredSelection) branchTree.getSelection());
+ CommonUtils.runCommand(
+ IWorkbenchCommandConstants.EDIT_DELETE,
+ (IStructuredSelection) branchTree.getSelection());
branchTree.refresh();
} catch (Throwable e) {
reportError(e,

Back to the top