|
21 | 21 | import org.eclipse.core.runtime.jobs.ISchedulingRule; |
22 | 22 | import org.eclipse.debug.core.DebugException; |
23 | 23 | import org.eclipse.debug.core.model.IDebugElement; |
| 24 | +import org.eclipse.debug.core.model.IStackFrame; |
24 | 25 | import org.eclipse.debug.internal.ui.viewers.model.provisional.IChildrenCountUpdate; |
25 | 26 | import org.eclipse.debug.internal.ui.viewers.model.provisional.IChildrenUpdate; |
26 | 27 | import org.eclipse.debug.internal.ui.viewers.model.provisional.IHasChildrenUpdate; |
@@ -107,7 +108,7 @@ protected Object[] getChildren(IJavaThread thread) { |
107 | 108 | } |
108 | 109 | } |
109 | 110 | } |
110 | | - var frames = getStackFrames(thread); |
| 111 | + List<IDebugElement> frames = getStackFrames(thread); |
111 | 112 | if (!isDisplayMonitors()) { |
112 | 113 | return frames.toArray(); |
113 | 114 | } |
@@ -137,10 +138,10 @@ protected Object[] getChildren(IJavaThread thread) { |
137 | 138 | * {@link Category#TEST} and {@link Category#CUSTOM_FILTERED} grouped into {@link GroupedStackFrame}s, those are folded by default, but can be |
138 | 139 | * expanded on demand by the user. |
139 | 140 | */ |
140 | | - private List<Object> getStackFrames(IJavaThread thread) throws DebugException { |
141 | | - var frames = thread.getStackFrames(); |
| 141 | + private List<IDebugElement> getStackFrames(IJavaThread thread) throws DebugException { |
| 142 | + IStackFrame[] frames = thread.getStackFrames(); |
142 | 143 | var stackFrameProvider = getStackFrameProvider(); |
143 | | - var result = new ArrayList<>(frames.length); |
| 144 | + var result = new ArrayList<IDebugElement>(frames.length); |
144 | 145 | if (!stackFrameProvider.isCollapseStackFrames()) { |
145 | 146 | result.addAll(Arrays.asList(frames)); |
146 | 147 | return result; |
|
0 commit comments