1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +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() ) {
String typeName = getVariableTypeName( type );
if ( typeName != null && typeName.length() > 0 ) {
label.append( typeName );
if ( type.isArray() ) {
int[] dims = type.getArrayDimensions();
for( int i = 0; i < dims.length; ++i ) {
label.append( '[' );
label.append( dims[i] );
label.append( ']' );
}
}
label.append( typeName ).append( ' ' );
}
}
String name = var.getName();