File tree 1 file changed +9
-0
lines changed
plugin/src/main/kotlin/spp/jetbrains/sourcemarker/service/instrument/breakpoint/ui
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 17
17
package spp.jetbrains.sourcemarker.service.instrument.breakpoint.ui
18
18
19
19
import com.intellij.openapi.Disposable
20
+ import com.intellij.openapi.util.Key
21
+ import com.intellij.ui.ClientProperty
20
22
import com.intellij.ui.components.JBScrollPane
21
23
import com.intellij.ui.tree.AsyncTreeModel
22
24
import com.intellij.ui.tree.StructureTreeModel
25
+ import com.intellij.ui.tree.ui.DefaultTreeUI
23
26
import com.intellij.ui.treeStructure.Tree
27
+ import org.joor.Reflect
24
28
import spp.jetbrains.sourcemarker.service.instrument.breakpoint.DebugStackFrameListener
25
29
import spp.jetbrains.sourcemarker.service.instrument.breakpoint.StackFrameManager
26
30
import spp.jetbrains.sourcemarker.service.instrument.breakpoint.tree.VariableSimpleTreeStructure
@@ -48,6 +52,11 @@ class VariableTab : DebugStackFrameListener, Disposable {
48
52
tree.isRootVisible = false
49
53
component = JPanel (BorderLayout ())
50
54
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 )
51
60
}
52
61
53
62
override fun onChanged (stackFrameManager : StackFrameManager ) {
You can’t perform that action at this time.
0 commit comments