Skip to content

Commit 42c07aa

Browse files
committed
Use the same icon for collapsed frames
1 parent de7ac99 commit 42c07aa

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIModelPresentation.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,9 @@ public Image getImage(Object item) {
755755
if (item instanceof IJavaStackFrame) {
756756
return getStackFrameImage((IJavaStackFrame) item);
757757
}
758+
if (item instanceof GroupedStackFrame) {
759+
return getJavaDebugImage(JavaDebugImages.IMG_OBJS_GROUPED_STACK_FRAME, 0);
760+
}
758761
if (item instanceof IJavaThread || item instanceof IJavaDebugTarget) {
759762
return getDebugElementImage(item);
760763
}

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugImages.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public class JavaDebugImages {
108108
public static final String IMG_OVR_TRIGGER_SUPPRESSED = "IMG_OVR_TRIGGER_SUPPRESSED"; //$NON-NLS-1$
109109

110110
public static final String IMG_JAVA_STACKTRACE_CONSOLE = "IMG_JAVA_STACKTRACE_CONSOLE"; //$NON-NLS-1$
111+
public static final String IMG_OBJS_GROUPED_STACK_FRAME = "IMG_OBJ_GROUPED_STACKFRAME"; //$NON-NLS-1$
111112

112113
/*
113114
* Set of predefined Image Descriptors.
@@ -227,6 +228,7 @@ private static void declareImages() {
227228
declareRegistryImage(IMG_OVR_TRIGGER_SUPPRESSED, T_OVR + "trigger_suppressed_ovr.png"); //$NON-NLS-1$
228229

229230
declareRegistryImage(IMG_JAVA_STACKTRACE_CONSOLE, T_OBJ + "javastacktrace_console.png"); //$NON-NLS-1$
231+
declareRegistryImage(IMG_OBJS_GROUPED_STACK_FRAME, T_OBJ + "groupedframe.png"); //$NON-NLS-1$
230232

231233
}
232234

0 commit comments

Comments
 (0)