mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
Display the proper image for reference types.
This commit is contained in:
parent
0627136ff0
commit
b32258ab17
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2003-08-13 Mikhail Khodjaiants
|
||||||
|
Display the proper image for reference types.
|
||||||
|
* CDTDebugModelPresentation.java
|
||||||
|
|
||||||
2003-07-30 Mikhail Khodjaiants
|
2003-07-30 Mikhail Khodjaiants
|
||||||
Moved the 'getReferencedProject' method to 'CDebugUtils'. Added the cycle checking.
|
Moved the 'getReferencedProject' method to 'CDebugUtils'. Added the cycle checking.
|
||||||
* SourceLookupBlock.java
|
* SourceLookupBlock.java
|
||||||
|
|
|
@ -894,12 +894,12 @@ public class CDTDebugModelPresentation extends LabelProvider
|
||||||
{
|
{
|
||||||
// use default image
|
// use default image
|
||||||
}
|
}
|
||||||
if ( type != null && ( type.isArray() || type.isStructure() ) )
|
if ( type != null && (type.isPointer() || type.isReference()) )
|
||||||
return fDebugImageRegistry.get( ( ((ICVariable)element).isEnabled() ) ?
|
|
||||||
CDebugImages.DESC_OBJS_VARIABLE_AGGREGATE : CDebugImages.DESC_OBJS_VARIABLE_AGGREGATE_DISABLED );
|
|
||||||
else if ( type != null && type.isPointer() )
|
|
||||||
return fDebugImageRegistry.get( ( ((ICVariable)element).isEnabled() ) ?
|
return fDebugImageRegistry.get( ( ((ICVariable)element).isEnabled() ) ?
|
||||||
CDebugImages.DESC_OBJS_VARIABLE_POINTER : CDebugImages.DESC_OBJS_VARIABLE_POINTER_DISABLED );
|
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
|
else
|
||||||
return fDebugImageRegistry.get( ( ((ICVariable)element).isEnabled() ) ?
|
return fDebugImageRegistry.get( ( ((ICVariable)element).isEnabled() ) ?
|
||||||
CDebugImages.DESC_OBJS_VARIABLE_SIMPLE : CDebugImages.DESC_OBJS_VARIABLE_SIMPLE_DISABLED );
|
CDebugImages.DESC_OBJS_VARIABLE_SIMPLE : CDebugImages.DESC_OBJS_VARIABLE_SIMPLE_DISABLED );
|
||||||
|
|
Loading…
Add table
Reference in a new issue