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:
parent
615478809e
commit
b973d5855f
1 changed files with 1 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue