mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Fix for the 'Restore Default Type' action.
This commit is contained in:
parent
e05bf9e181
commit
0520750101
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-03-14 Mikhail Khodjaiants
|
||||
Fix for the 'Restore Default Type' action.
|
||||
* RestoreDefaultTypeActionDelegate.java
|
||||
|
||||
2003-03-11 Mikhail Khodjaiants
|
||||
The implementation of the "Display As Array" action.
|
||||
* CastToArrayActionDelegate.java
|
||||
|
|
|
@ -103,7 +103,7 @@ public class RestoreDefaultTypeActionDelegate extends ActionDelegate
|
|||
Object element = ((IStructuredSelection)selection).getFirstElement();
|
||||
if ( element instanceof ICastToType )
|
||||
{
|
||||
boolean enabled = ((ICastToType)element).supportsCasting() && ((ICastToType)element).isCasted();
|
||||
boolean enabled = ((ICastToType)element).isCasted();
|
||||
action.setEnabled( enabled );
|
||||
if ( enabled )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue