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

Display the error message in the variable's label if the value of variable can not be retrieved.

This commit is contained in:
Mikhail Khodjaiants 2004-07-30 21:27:45 +00:00
parent 01eef6aa4b
commit aa22210b4e
3 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-07-30 Mikhail Khodjaiants
Display the error message in the variable's label if the value of variable can not be retrieved.
* CDebugUIMessages.properties
* CDTDebugModelPresentation.java
2004-07-23 Mikhail Khodjaiants
More informative error messages.
* CDebugUIMessages.properties

View file

@ -516,7 +516,10 @@ public class CDTDebugModelPresentation extends LabelProvider implements IDebugMo
if ( name != null )
label.append( name.trim() );
IValue value = var.getValue();
if ( value instanceof ICValue && value.getValueString() != null ) {
if ( value instanceof ICDebugElementStatus && !((ICDebugElementStatus)value).isOK() ) {
label.append( getFormattedString( CDebugUIMessages.getString( "CDTDebugModelPresentation.4" ), ((ICDebugElementStatus)value).getMessage() ) ); //$NON-NLS-1$
}
else if ( value instanceof ICValue && value.getValueString() != null ) {
String valueString = value.getValueString().trim();
if ( type != null && type.isCharacter() ) {
if ( valueString.length() == 0 )

View file

@ -21,6 +21,7 @@ CDTDebugModelPresentation.6=Exit code = {0}.
CDTDebugModelPresentation.7={0} (Suspended)
CDTDebugModelPresentation.8=Thread [{0}]
CDTDebugModelPresentation.9=Thread [{0}] (Terminated)
CDTDebugModelPresentation.4== <Error. {0}>
CDTDebugModelPresentation.10=Thread [{0}] (Stepping)
CDTDebugModelPresentation.11=Thread [{0}] (Running)
CDTDebugModelPresentation.13=: Signal ''{0}'' received. Description: {1}.