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

Fix for PR 46861: Use a special image for arguments in the Variables view.

This commit is contained in:
Mikhail Khodjaiants 2003-11-18 19:33:12 +00:00
parent 29026f5fb0
commit b2b090d2fd
6 changed files with 24 additions and 1 deletions

View file

@ -7,6 +7,12 @@
All methods of 'IRuntimeOptions' should throw CDI exceptions in case of failure.
* ICDIRuntimeOptions.java
2003-10-06 Mikhail Khodjaiants
Added the "isArgument" method to ICVariable. This method is used to distinguish
the arguments in the Variables View.
* ICVariable.java
* CVariable.java
2003-09-30 Mikhail Khodjaiants
Use the new 'equals' method of ICDIVaraiableObject to compare variables.
* CVariable.java

View file

@ -31,4 +31,6 @@ public interface ICVariable extends IVariable
void setEnabled( boolean enabled ) throws DebugException;
boolean canEnableDisable();
boolean isArgument();
}

View file

@ -981,7 +981,7 @@ public abstract class CVariable extends CDebugElement
}
}
protected boolean isArgument()
public boolean isArgument()
{
return ( fOriginal != null ) ? ( fOriginal.getCDIVariableObject() instanceof ICDIArgumentObject ) : false;
}

View file

@ -2,6 +2,14 @@
Fix for PR 45957: Memory view: last column does not show updates.
* MemoryPresentation.java
2003-10-06 Mikhail Khodjaiants
Mark the function arguments in the Variables View.
* icons\full\ovr16\argument_ovr.gif: new
* icons\full\ovr16\castarray_ovr.gif: new
* icons\full\ovr16\casttype_ovr.gif: new
* CDebugImages.java
* CDTDebugModelPresentation.java
2003-09-30 Mikhail Khodjaiants
Fix for PR 39737: Tooltip in debug mode over long strings is not handled properly.
Added an internal constant to limit the hover text size.

View file

@ -226,6 +226,9 @@ public class CDTDebugModelPresentation extends LabelProvider
break;
}
}
if ( element instanceof ICVariable && ((ICVariable)element).isArgument() )
overlays[OverlayImageDescriptor.TOP_RIGHT] = CDebugImages.DESC_OVRS_ARGUMENT;
return fImageCache.getImageFor( new OverlayImageDescriptor( baseImage, overlays ) );
}
return null;

View file

@ -60,6 +60,8 @@ public class CDebugImages
public static final String IMG_OVRS_ERROR = NAME_PREFIX + "error_ovr.gif"; //$NON-NLS-1$
public static final String IMG_OVRS_WARNING = NAME_PREFIX + "warning_ovr.gif"; //$NON-NLS-1$
public static final String IMG_OVRS_SYMBOLS = NAME_PREFIX + "symbols_ovr.gif"; //$NON-NLS-1$
public static final String IMG_OVRS_VARIABLE_CASTED = NAME_PREFIX + "casttype_ovr.gif"; //$NON-NLS-1$
public static final String IMG_OVRS_ARGUMENT = NAME_PREFIX + "argument_ovr.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_ADDRESS_BREAKPOINT_ENABLED = NAME_PREFIX + "addrbrkp_obj.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_ADDRESS_BREAKPOINT_DISABLED = NAME_PREFIX + "addrbrkpd_obj.gif"; //$NON-NLS-1$
public static final String IMG_OBJS_FUNCTION_BREAKPOINT_ENABLED = NAME_PREFIX + "funbrkp_obj.gif"; //$NON-NLS-1$
@ -129,6 +131,8 @@ public class CDebugImages
public static final ImageDescriptor DESC_OVRS_FUNCTION_BREAKPOINT = createManaged( T_OVR, IMG_OVRS_FUNCTION_BREAKPOINT );
public static final ImageDescriptor DESC_OVRS_FUNCTION_BREAKPOINT_DISABLED = createManaged( T_OVR, IMG_OVRS_FUNCTION_BREAKPOINT_DISABLED );
public static final ImageDescriptor DESC_OVRS_SYMBOLS = createManaged( T_OVR, IMG_OVRS_SYMBOLS );
public static final ImageDescriptor DESC_OVRS_VARIABLE_CASTED = createManaged( T_OVR, IMG_OVRS_VARIABLE_CASTED );
public static final ImageDescriptor DESC_OVRS_ARGUMENT = createManaged( T_OVR, IMG_OVRS_ARGUMENT );
public static final ImageDescriptor DESC_OBJS_WATCHPOINT_ENABLED = createManaged( T_OBJ, IMG_OBJS_WATCHPOINT_ENABLED );
public static final ImageDescriptor DESC_OBJS_WATCHPOINT_DISABLED = createManaged( T_OBJ, IMG_OBJS_WATCHPOINT_DISABLED );
public static final ImageDescriptor DESC_OBJS_READ_WATCHPOINT_ENABLED = createManaged( T_OBJ, IMG_OBJS_READ_WATCHPOINT_ENABLED );