Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2009-09-10 14:01:09 +0000
committerDarin Wright2009-09-10 14:01:09 +0000
commit47d426fbc50af9002cc7672a2c6b98bab52619b9 (patch)
treef05d2e056e45a6045c54209254fc6cbd7a7ba800 /org.eclipse.debug.ui/ui
parentde6dcdfb63ae6c3000fc3c70a260f8ff22011165 (diff)
downloadeclipse.platform.debug-47d426fbc50af9002cc7672a2c6b98bab52619b9.tar.gz
eclipse.platform.debug-47d426fbc50af9002cc7672a2c6b98bab52619b9.tar.xz
eclipse.platform.debug-47d426fbc50af9002cc7672a2c6b98bab52619b9.zip
Bug 289024 - Group breakpoint removal dialog ignores 'Esc' button and removes breakpoints anyway
Diffstat (limited to 'org.eclipse.debug.ui/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RemoveBreakpointAction.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RemoveBreakpointAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RemoveBreakpointAction.java
index b8ece86ff..6d9aa0982 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RemoveBreakpointAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/RemoveBreakpointAction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -93,13 +93,13 @@ public class RemoveBreakpointAction extends AbstractRemoveActionDelegate {
if(prompted) {
MessageDialogWithToggle mdwt = MessageDialogWithToggle.openYesNoQuestion(getView().getSite().getShell(), ActionMessages.RemoveBreakpointAction_0,
ActionMessages.RemoveBreakpointAction_1, ActionMessages.RemoveAllBreakpointsAction_3, !prompted, null, null);
- if(mdwt.getReturnCode() == IDialogConstants.NO_ID) {
- deleteAll = false;
- }
- else {
+ if(mdwt.getReturnCode() == IDialogConstants.YES_ID) {
store.setValue(IDebugPreferenceConstants.PREF_PROMPT_REMOVE_BREAKPOINTS_FROM_CONTAINER, !mdwt.getToggleState());
deleteAll = true;
}
+ else {
+ deleteAll = false;
+ }
}
else {
deleteAll = !prompted;

Back to the top