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:
parent
af887aa72c
commit
30fdf45570
2 changed files with 16 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
label.append( "= " );
|
||||
label.append( value.getValueString().trim() );
|
||||
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( valueString );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue