1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-30 11:43:33 +02:00

Fix for bug 69085: Arrays in the Expressions view.

This commit is contained in:
Mikhail Khodjaiants 2004-08-04 21:37:48 +00:00
parent 6b3707cfcd
commit 1d1df82897
4 changed files with 20 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2004-08-04 Mikhail Khodjaiants
Fix for bug 69085: Arrays in the Expressions view
* CArrayPartitionValue.java
2004-06-29 Alain Magloire
Do not use the cache stackframe.

View file

@ -66,7 +66,7 @@ public class CArrayPartitionValue extends CDebugElement implements ICValue
*/
public String getReferenceTypeName() throws DebugException
{
return null;
return ( getParentVariable() != null ) ? getParentVariable().getReferenceTypeName() : null;
}
/* (non-Javadoc)
@ -74,7 +74,7 @@ public class CArrayPartitionValue extends CDebugElement implements ICValue
*/
public String getValueString() throws DebugException
{
return null;
return ""; //$NON-NLS-1$
}
/* (non-Javadoc)

View file

@ -1,3 +1,7 @@
2004-08-04 Mikhail Khodjaiants
Fix for bug 69085: Arrays in the Expressions view
* CDTDebugModelPresentation.java
2004-07-15 Mikhail Khodjaiants
Fix for bug 70147. TVT3.0: Preferences CDT Editor has non-externalized string.
* plugin.properties

View file

@ -478,6 +478,16 @@ public class CDTDebugModelPresentation extends LabelProvider implements IDebugMo
if ( valueString.length() > 0 ) {
result.append( " = " ).append( valueString ); //$NON-NLS-1$
}
if ( isShowVariableTypeNames() ) {
String type = null;
try {
type = value.getReferenceTypeName();
}
catch( DebugException e ) {
}
if ( !isEmpty( type ) )
result.insert( 0, type + ' ' );
}
}
}
if ( !expression.isEnabled() ) {