mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 236857
This commit is contained in:
parent
90285d927f
commit
cbcbc74c30
1 changed files with 7 additions and 7 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue