File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
plugin/src/main/kotlin/spp/jetbrains/sourcemarker/service/instrument/breakpoint/ui Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1717package spp.jetbrains.sourcemarker.service.instrument.breakpoint.ui
1818
1919import com.intellij.openapi.Disposable
20+ import com.intellij.openapi.util.Key
21+ import com.intellij.ui.ClientProperty
2022import com.intellij.ui.components.JBScrollPane
2123import com.intellij.ui.tree.AsyncTreeModel
2224import com.intellij.ui.tree.StructureTreeModel
25+ import com.intellij.ui.tree.ui.DefaultTreeUI
2326import com.intellij.ui.treeStructure.Tree
27+ import org.joor.Reflect
2428import spp.jetbrains.sourcemarker.service.instrument.breakpoint.DebugStackFrameListener
2529import spp.jetbrains.sourcemarker.service.instrument.breakpoint.StackFrameManager
2630import spp.jetbrains.sourcemarker.service.instrument.breakpoint.tree.VariableSimpleTreeStructure
@@ -48,6 +52,11 @@ class VariableTab : DebugStackFrameListener, Disposable {
4852 tree.isRootVisible = false
4953 component = JPanel (BorderLayout ())
5054 component.add(JBScrollPane (tree), " Center" )
55+
56+ // todo: temporary fix for #575
57+ val AUTO_EXPAND_ALLOWED = Reflect .onClass(DefaultTreeUI ::class .java)
58+ .get<Key <Boolean >>(" AUTO_EXPAND_ALLOWED" )
59+ ClientProperty .put(tree, AUTO_EXPAND_ALLOWED , false )
5160 }
5261
5362 override fun onChanged (stackFrameManager : StackFrameManager ) {
You can’t perform that action at this time.
0 commit comments