mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for bug 36682.
This commit is contained in:
parent
595aeddd55
commit
d3d90593b4
2 changed files with 26 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-04-21 Mikhail Khodjaiants
|
||||
Fix for bug 36682.
|
||||
* CDTDebugModelPresentation.java
|
||||
|
||||
2003-04-21 Mikhail Khodjaiants
|
||||
Temporary fix for character values.
|
||||
* CDTDebugModelPresentation.java
|
||||
|
|
|
@ -485,7 +485,9 @@ public class CDTDebugModelPresentation extends LabelProvider
|
|||
{
|
||||
if ( isShowVariableTypeNames() )
|
||||
{
|
||||
label += var.getReferenceTypeName() + " ";
|
||||
String type = getVariableTypeName( var );
|
||||
if ( type != null && type.length() > 0 )
|
||||
label += type + " ";
|
||||
}
|
||||
label += var.getName();
|
||||
IValue value = var.getValue();
|
||||
|
@ -931,4 +933,23 @@ public class CDTDebugModelPresentation extends LabelProvider
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private String getVariableTypeName( IVariable variable )
|
||||
{
|
||||
String type = null;
|
||||
try
|
||||
{
|
||||
type = variable.getReferenceTypeName();
|
||||
if ( type != null )
|
||||
{
|
||||
int index = type.indexOf( '[' );
|
||||
if ( index != -1 )
|
||||
return type.substring( 0, index ).trim();
|
||||
}
|
||||
}
|
||||
catch( DebugException e )
|
||||
{
|
||||
}
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue