1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-09 19:43:27 +02:00

Fix for the 'Restore Default Type' action.

This commit is contained in:
Mikhail Khodjaiants 2003-03-14 23:15:12 +00:00
parent e05bf9e181
commit 0520750101
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2003-03-14 Mikhail Khodjaiants
Fix for the 'Restore Default Type' action.
* RestoreDefaultTypeActionDelegate.java
2003-03-11 Mikhail Khodjaiants 2003-03-11 Mikhail Khodjaiants
The implementation of the "Display As Array" action. The implementation of the "Display As Array" action.
* CastToArrayActionDelegate.java * CastToArrayActionDelegate.java

View file

@ -103,7 +103,7 @@ public class RestoreDefaultTypeActionDelegate extends ActionDelegate
Object element = ((IStructuredSelection)selection).getFirstElement(); Object element = ((IStructuredSelection)selection).getFirstElement();
if ( element instanceof ICastToType ) if ( element instanceof ICastToType )
{ {
boolean enabled = ((ICastToType)element).supportsCasting() && ((ICastToType)element).isCasted(); boolean enabled = ((ICastToType)element).isCasted();
action.setEnabled( enabled ); action.setEnabled( enabled );
if ( enabled ) if ( enabled )
{ {