From b75d5577de227bfd4cad480874d261790b87cddd Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Mon, 6 Oct 2003 21:11:38 +0000 Subject: [PATCH] Mark the function arguments in the Variables View. --- debug/org.eclipse.cdt.debug.ui/ChangeLog | 8 ++++++++ .../icons/full/ovr16/argument_ovr.gif | Bin 0 -> 822 bytes .../icons/full/ovr16/castarray_ovr.gif | Bin 0 -> 822 bytes .../icons/full/ovr16/casttype_ovr.gif | Bin 0 -> 819 bytes .../internal/ui/CDTDebugModelPresentation.java | 3 +++ .../cdt/debug/internal/ui/CDebugImages.java | 4 ++++ 6 files changed, 15 insertions(+) create mode 100644 debug/org.eclipse.cdt.debug.ui/icons/full/ovr16/argument_ovr.gif create mode 100644 debug/org.eclipse.cdt.debug.ui/icons/full/ovr16/castarray_ovr.gif create mode 100644 debug/org.eclipse.cdt.debug.ui/icons/full/ovr16/casttype_ovr.gif diff --git a/debug/org.eclipse.cdt.debug.ui/ChangeLog b/debug/org.eclipse.cdt.debug.ui/ChangeLog index 669bc45dec5..132c36befc0 100644 --- a/debug/org.eclipse.cdt.debug.ui/ChangeLog +++ b/debug/org.eclipse.cdt.debug.ui/ChangeLog @@ -1,3 +1,11 @@ +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. diff --git a/debug/org.eclipse.cdt.debug.ui/icons/full/ovr16/argument_ovr.gif b/debug/org.eclipse.cdt.debug.ui/icons/full/ovr16/argument_ovr.gif new file mode 100644 index 0000000000000000000000000000000000000000..f571930d922f123602e2aacea0aad088ae8fd35c GIT binary patch literal 822 zcmW-gKdVz=492sF6^h_kL~xJ}!9_YKICS$5ba2VgO_$=_FOV1R+AmOWxEHKLCg~Sw zU8Q4&4zArVT^t;azr2BR8j?JDo+szL|M>3B>n{&wB!8u%^LEq1rCWw2^6&$iOk)T7A%Q|z z0|seW(h3h2gAFuTSpi(w@CSW6a}b-;f9V$m;J_v}Y1Qr-7DZ@02I zc6aL9U2swE8tV9+Rw?M4faZ1JN|=YHzDma9@nkZYPN%ckY(Aea7K`O_xmvB(>oo># zHk<8syW8#d`~Bf?IGs-C^Z9bQT(8&R-~H|F_tx6LyFAFyA3XU-ysS68z6BXQmEqC& d`OnYo=E3mf#n(@Fzivj)9)J7r>h9R&?SF#2Q}zG= literal 0 HcmV?d00001 diff --git a/debug/org.eclipse.cdt.debug.ui/icons/full/ovr16/castarray_ovr.gif b/debug/org.eclipse.cdt.debug.ui/icons/full/ovr16/castarray_ovr.gif new file mode 100644 index 0000000000000000000000000000000000000000..2bf69356aa28abb80bb449d3aace94d8a5ae39af GIT binary patch literal 822 zcmZ?wbhEHbWM|-D_|Cxa|Nnmmh6aXFFd70QG6Zx$z6Rw51`cTkMivf*2@4z;IC!OO VPE2^{)XE_%BqOm=siA?v8UO;s4hsMP literal 0 HcmV?d00001 diff --git a/debug/org.eclipse.cdt.debug.ui/icons/full/ovr16/casttype_ovr.gif b/debug/org.eclipse.cdt.debug.ui/icons/full/ovr16/casttype_ovr.gif new file mode 100644 index 0000000000000000000000000000000000000000..766e87314a72091898779b4e6fc22de1b0a8c5d4 GIT binary patch literal 819 zcmZ?wbhEHbWM|-D_|Cxa|Nnmmh6aXFFd70QG6Zx$z6Rw51`Y`ZMg|UpfCR@z7JfOO R9TyUu+5|+UOe6#ttO3-B3^f1% literal 0 HcmV?d00001 diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java index 4b82a5e7a0d..bcf8e5aaf72 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java @@ -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; diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java index bd50eb985e4..8d80183ccb0 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java @@ -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 );