1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 236857

This commit is contained in:
Ken Ryall 2009-01-23 02:40:22 +00:00
parent 90285d927f
commit cbcbc74c30

View file

@ -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,13 +124,13 @@ public class EnableVariablesActionDelegate implements IViewActionDelegate {
boolean allDisabled = true;
while( it.hasNext() ) {
IEnableDisableTarget target = getEnableDisableTarget( it.next() );
if ( target != null && !target.canEnableDisable() )
continue;
if ( target != null && target.canEnableDisable() ) {
if ( target.isEnabled() )
allDisabled = false;
else
allEnabled = false;
}
}
if ( isEnableAction() )
action.setEnabled( !allEnabled );
else