1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Display the proper image for reference types.

This commit is contained in:
Mikhail Khodjaiants 2003-08-13 18:20:21 +00:00
parent 0627136ff0
commit b32258ab17
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2003-08-13 Mikhail Khodjaiants
Display the proper image for reference types.
* CDTDebugModelPresentation.java
2003-07-30 Mikhail Khodjaiants
Moved the 'getReferencedProject' method to 'CDebugUtils'. Added the cycle checking.
* SourceLookupBlock.java

View file

@ -894,12 +894,12 @@ public class CDTDebugModelPresentation extends LabelProvider
{
// use default image
}
if ( type != null && ( type.isArray() || type.isStructure() ) )
return fDebugImageRegistry.get( ( ((ICVariable)element).isEnabled() ) ?
CDebugImages.DESC_OBJS_VARIABLE_AGGREGATE : CDebugImages.DESC_OBJS_VARIABLE_AGGREGATE_DISABLED );
else if ( type != null && type.isPointer() )
if ( type != null && (type.isPointer() || type.isReference()) )
return fDebugImageRegistry.get( ( ((ICVariable)element).isEnabled() ) ?
CDebugImages.DESC_OBJS_VARIABLE_POINTER : CDebugImages.DESC_OBJS_VARIABLE_POINTER_DISABLED );
else if ( ((ICVariable)element).hasChildren() )
return fDebugImageRegistry.get( ( ((ICVariable)element).isEnabled() ) ?
CDebugImages.DESC_OBJS_VARIABLE_AGGREGATE : CDebugImages.DESC_OBJS_VARIABLE_AGGREGATE_DISABLED );
else
return fDebugImageRegistry.get( ( ((ICVariable)element).isEnabled() ) ?
CDebugImages.DESC_OBJS_VARIABLE_SIMPLE : CDebugImages.DESC_OBJS_VARIABLE_SIMPLE_DISABLED );