Community
Participate
Working Groups
Created attachment 275748 [details] zipped plugin project that demonstrates the problem IDetailPane.dispose() is never called for a detail pane in the hover for source code variables during Java debugging. The control for the detail pane is disposed, but not immediately when the hover window closes. It will be disposed when the next hover window is shown, when an "inspect" window closes, and probably at other times. This can be used to mitigate the problem. We are using detail panes that can update in the background (at debugger breakpoint, step, suspend) and not just though IDetailPane.display(). Updates for these can take significant time, so having even one unused/invisible active detail pane is troublesome. For the "inspect" window, there is no problem, dispose() is called as soon as the window closes. The hover window should work the same way. A test project is attached. Debug as an Eclipse Application, debug anything in the target and stop at a breakpoint. Try hovering over an initialized variable and also try using "inspect" on the same. Check console output. You will see that dispose() is never called for the hover detail panes, and dispose on the control is not called immediately when the hover window closes.
Patch is welcome. I guess this is not a regression in 4.8, the code must be much older.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.