equal
deleted
inserted
replaced
127 import Isabelle_Sidekick.int_to_pos |
127 import Isabelle_Sidekick.int_to_pos |
128 |
128 |
129 val root = data.root |
129 val root = data.root |
130 val snapshot = Swing_Thread.now { model.snapshot() } // FIXME cover all nodes (!??) |
130 val snapshot = Swing_Thread.now { model.snapshot() } // FIXME cover all nodes (!??) |
131 for ((command, command_start) <- snapshot.node.command_range(0) if !stopped) { |
131 for ((command, command_start) <- snapshot.node.command_range(0) if !stopped) { |
132 snapshot.state(command).markup_root.swing_tree(root)((node: Markup_Tree.Node) => |
132 snapshot.state(command).markup_root.swing_tree(root)((node: Markup_Tree.Node[Any]) => |
133 { |
133 { |
134 val content = command.source(node.range).replace('\n', ' ') |
134 val content = command.source(node.range).replace('\n', ' ') |
135 val id = command.id |
135 val id = command.id |
136 |
136 |
137 new DefaultMutableTreeNode(new IAsset { |
137 new DefaultMutableTreeNode(new IAsset { |