1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 19:35:36 +02:00

[252691] - Fixed bug which caused the action to always be enabled.

This commit is contained in:
Pawel Piech 2008-10-30 14:35:44 +00:00
parent 5db19ce9af
commit f7eb3abbdd

View file

@ -118,11 +118,13 @@ abstract public class RetargetDebugContextAction implements IWorkbenchWindowActi
Object object = ss.getFirstElement(); Object object = ss.getFirstElement();
if (object instanceof IAdaptable) { if (object instanceof IAdaptable) {
fTargetAdapter = getAdapter((IAdaptable) object); fTargetAdapter = getAdapter((IAdaptable) object);
if (fTargetAdapter != null) {
fAction.setEnabled(canPerformAction(fTargetAdapter, fDebugContext)); fAction.setEnabled(canPerformAction(fTargetAdapter, fDebugContext));
return; return;
} }
} }
} }
}
fAction.setEnabled(false); fAction.setEnabled(false);
} }