1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 11:55:40 +02:00

Use the same approach to generate expressions and variables labels.

This commit is contained in:
Mikhail Khodjaiants 2004-10-06 21:41:45 +00:00
parent 615478809e
commit b973d5855f

View file

@ -516,15 +516,7 @@ public class CDTDebugModelPresentation extends LabelProvider implements IDebugMo
if ( type != null && isShowVariableTypeNames() ) { if ( type != null && isShowVariableTypeNames() ) {
String typeName = getVariableTypeName( type ); String typeName = getVariableTypeName( type );
if ( typeName != null && typeName.length() > 0 ) { if ( typeName != null && typeName.length() > 0 ) {
label.append( typeName ); label.append( typeName ).append( ' ' );
if ( type.isArray() ) {
int[] dims = type.getArrayDimensions();
for( int i = 0; i < dims.length; ++i ) {
label.append( '[' );
label.append( dims[i] );
label.append( ']' );
}
}
} }
} }
String name = var.getName(); String name = var.getName();