1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

The presentation of the new types.

This commit is contained in:
Mikhail Khodjaiants 2003-06-04 16:13:59 +00:00
parent af887aa72c
commit 30fdf45570
2 changed files with 16 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2003-06-04 Mikhail Khodjaiants
The presentation of the new types.
* CDTDebugModelPresentation.java
2003-05-23 Mikhail Khodjaiants
Fix for PR 38047: Unable to save changes in C/C++ debug editor.
* CDebugEditor.java

View file

@ -564,10 +564,19 @@ public class CDTDebugModelPresentation extends LabelProvider
label.append( ']' );
}
}
else if ( !((ICVariable)var).isStructure() && value.getValueString() != null && value.getValueString().trim().length() > 0 )
else if ( !((ICVariable)var).isStructure() && value.getValueString() != null )
{
String valueString = value.getValueString().trim();
if ( valueString.length() == 0 && ((ICVariable)var).isCharacter() )
valueString = ".";
if ( ((ICVariable)var).isNaN() )
valueString = "NAN";
if ( valueString.length() > 0 )
{
label.append( "= " );
label.append( value.getValueString().trim() );
label.append( valueString );
}
}
}
}