Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorKen Ryall2009-01-22 21:38:21 -0500
committerKen Ryall2009-01-22 21:38:21 -0500
commit3216c0863de13387dd228acca7a06d42fc35e9c7 (patch)
treea2c7e32c5d100cf1c86d2581637f0b4e38a1cf2f /debug
parent1365e621c4cf537d817035b8698649ea13c59416 (diff)
downloadorg.eclipse.cdt-3216c0863de13387dd228acca7a06d42fc35e9c7.tar.gz
org.eclipse.cdt-3216c0863de13387dd228acca7a06d42fc35e9c7.tar.xz
org.eclipse.cdt-3216c0863de13387dd228acca7a06d42fc35e9c7.zip
Bug 236857
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableVariablesActionDelegate.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableVariablesActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableVariablesActionDelegate.java
index 1e3f167035..a8deb952d5 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableVariablesActionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/EnableVariablesActionDelegate.java
@@ -85,7 +85,7 @@ public class EnableVariablesActionDelegate implements IViewActionDelegate {
public void run() {
while( it.hasNext() ) {
IEnableDisableTarget target = getEnableDisableTarget( it.next() );
- if ( target != null ) {
+ if ( target != null && target.canEnableDisable() ) {
try {
if ( size > 1 ) {
target.setEnabled( isEnableAction() );
@@ -124,12 +124,12 @@ public class EnableVariablesActionDelegate implements IViewActionDelegate {
boolean allDisabled = true;
while( it.hasNext() ) {
IEnableDisableTarget target = getEnableDisableTarget( it.next() );
- if ( target != null && !target.canEnableDisable() )
- continue;
- if ( target.isEnabled() )
- allDisabled = false;
- else
- allEnabled = false;
+ if ( target != null && target.canEnableDisable() ) {
+ if ( target.isEnabled() )
+ allDisabled = false;
+ else
+ allEnabled = false;
+ }
}
if ( isEnableAction() )
action.setEnabled( !allEnabled );

Back to the top