src/Tools/jEdit/src/debugger_dockable.scala
changeset 81483 7d4df25af572
parent 81477 c9256ac99214
child 81486 ed5e75468db3
equal deleted inserted replaced
81482:1001e27dbbf1 81483:7d4df25af572
   110         case Some(c) if thread_contexts.exists(t => c.thread_name == t.thread_name) =>
   110         case Some(c) if thread_contexts.exists(t => c.thread_name == t.thread_name) =>
   111           Some(c.reset)
   111           Some(c.reset)
   112         case _ => thread_contexts.headOption
   112         case _ => thread_contexts.headOption
   113       }
   113       }
   114 
   114 
   115     output.tree.clear()
   115     output.tree.init_model {
   116 
   116       for (thread <- thread_contexts) {
   117     for (thread <- thread_contexts) {
   117         val thread_node = Tree_View.Node(thread)
   118       val thread_node = Tree_View.Node(thread)
   118         for ((_, i) <- thread.debug_states.zipWithIndex) {
   119       for ((_, i) <- thread.debug_states.zipWithIndex)
   119           thread_node.add(Tree_View.Node(thread.select(i)))
   120         thread_node.add(Tree_View.Node(thread.select(i)))
   120         }
   121       output.tree.root.add(thread_node)
   121         output.tree.root.add(thread_node)
   122     }
   122       }
   123 
   123     }
   124     output.tree.reload_model()
   124 
   125 
       
   126     output.tree.expandRow(0)
       
   127     for (i <- Range.inclusive(output.tree.getRowCount - 1, 1, -1)) output.tree.expandRow(i)
   125     for (i <- Range.inclusive(output.tree.getRowCount - 1, 1, -1)) output.tree.expandRow(i)
   128 
   126 
   129     new_tree_selection match {
   127     new_tree_selection match {
   130       case Some(c) =>
   128       case Some(c) =>
   131         val i =
   129         val i =