Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2005-04-19 20:45:54 +0000
committerDarin Wright2005-04-19 20:45:54 +0000
commitf2e903a63c41c1eebdeea39804e4cbaa539d790f (patch)
tree43fb45daf00eb66c171f1a9f8b93cf6ec33d9ec0 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java
parent114773c1777b85c73deaea3577a75bc240b56065 (diff)
downloadeclipse.platform.debug-f2e903a63c41c1eebdeea39804e4cbaa539d790f.tar.gz
eclipse.platform.debug-f2e903a63c41c1eebdeea39804e4cbaa539d790f.tar.xz
eclipse.platform.debug-f2e903a63c41c1eebdeea39804e4cbaa539d790f.zip
Bug 88685 - stepxxx and resume calls made even if "canStepxxx()" and "canResume()" return false
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java
index f9ff32891..f3212a92f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/AbstractDebugActionDelegate.java
@@ -94,7 +94,11 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
for (int i = 0; i < fElements.length; i++) {
Object element= fElements[i];
try {
- doAction(element);
+ // Action's enablement could have been changed since
+ // it was last enabled. Check that the action is still
+ // enabled before running the action.
+ if (isEnabledFor(element))
+ doAction(element);
} catch (DebugException e) {
status.merge(e.getStatus());
}
@@ -181,7 +185,11 @@ public abstract class AbstractDebugActionDelegate implements IWorkbenchWindowAct
while (selectionIter.hasNext()) {
Object element= selectionIter.next();
try {
- doAction(element);
+ // Action's enablement could have been changed since
+ // it was last enabled. Check that the action is still
+ // enabled before running the action.
+ if (isEnabledFor(element))
+ doAction(element);
} catch (DebugException e) {
status.merge(e.getStatus());
}

Back to the top