| author | wenzelm |
| Tue, 24 Jun 2025 21:05:48 +0200 | |
| changeset 82747 | 00828818a607 |
| parent 82142 | 508a673c87ac |
| permissions | -rw-r--r-- |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
1 |
/* Title: Tools/jEdit/src/simplifier_trace_dockable.scala |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
2 |
Author: Lars Hupel |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
3 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
4 |
Dockable window with interactive simplifier trace. |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
5 |
*/ |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
6 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
7 |
package isabelle.jedit |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
8 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
9 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
10 |
import isabelle._ |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
11 |
|
| 75853 | 12 |
import scala.swing.{Orientation, Separator}
|
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
13 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
14 |
import java.awt.BorderLayout |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
15 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
16 |
import org.gjt.sp.jedit.View |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
17 |
|
| 55556 | 18 |
|
| 75393 | 19 |
class Simplifier_Trace_Dockable(view: View, position: String) extends Dockable(view, position) {
|
|
81493
07e79b80e96d
clarified signature: avoid implicit functionality;
wenzelm
parents:
81491
diff
changeset
|
20 |
dockable => |
|
07e79b80e96d
clarified signature: avoid implicit functionality;
wenzelm
parents:
81491
diff
changeset
|
21 |
|
|
57612
990ffb84489b
clarified module name: facilitate alternative GUI frameworks;
wenzelm
parents:
57593
diff
changeset
|
22 |
GUI_Thread.require {}
|
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
23 |
|
| 60748 | 24 |
|
|
57612
990ffb84489b
clarified module name: facilitate alternative GUI frameworks;
wenzelm
parents:
57593
diff
changeset
|
25 |
/* component state -- owned by GUI thread */ |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
26 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
27 |
private var current_snapshot = Document.State.init.snapshot() |
|
56299
8201790fdeb9
more careful treatment of multiple command states (eval + prints): merge content that is actually required;
wenzelm
parents:
55825
diff
changeset
|
28 |
private var current_command = Command.empty |
|
8201790fdeb9
more careful treatment of multiple command states (eval + prints): merge content that is actually required;
wenzelm
parents:
55825
diff
changeset
|
29 |
private var current_results = Command.Results.empty |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
30 |
private var current_id = 0L |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
31 |
private var do_update = true |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
32 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
33 |
|
| 81491 | 34 |
private val output: Output_Area = new Output_Area(view) |
|
81493
07e79b80e96d
clarified signature: avoid implicit functionality;
wenzelm
parents:
81491
diff
changeset
|
35 |
|
|
07e79b80e96d
clarified signature: avoid implicit functionality;
wenzelm
parents:
81491
diff
changeset
|
36 |
output.setup(dockable) |
|
07e79b80e96d
clarified signature: avoid implicit functionality;
wenzelm
parents:
81491
diff
changeset
|
37 |
set_content(output.text_pane) |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
38 |
|
| 75393 | 39 |
private def update_contents(): Unit = {
|
|
57593
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
40 |
val snapshot = current_snapshot |
|
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
41 |
val context = Simplifier_Trace.handle_results(PIDE.session, current_id, current_results) |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
42 |
|
|
57593
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
43 |
answers.contents.clear() |
|
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
44 |
context.questions.values.toList match {
|
|
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
45 |
case q :: _ => |
|
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
46 |
val data = q.data |
| 81491 | 47 |
output.pretty_text_area.update(snapshot, Command.Results.empty, |
48 |
List(Pretty.block(XML.Text(data.text) :: data.content, indent = 0))) |
|
|
57593
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
49 |
q.answers.foreach { answer =>
|
| 75853 | 50 |
answers.contents += new GUI.Button(answer.string) {
|
51 |
override def clicked(): Unit = |
|
52 |
Simplifier_Trace.send_reply(PIDE.session, data.serial, answer) |
|
|
57593
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
53 |
} |
|
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
54 |
} |
|
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
55 |
case Nil => |
| 81491 | 56 |
output.pretty_text_area.update(snapshot, Command.Results.empty, Nil) |
|
57593
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
57 |
} |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
58 |
|
| 81491 | 59 |
output.handle_resize() |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
60 |
} |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
61 |
|
| 75393 | 62 |
private def show_trace(): Unit = {
|
|
71650
95ab607398bd
support multiple sessions, notably for "isabelle build -P -j2";
wenzelm
parents:
66591
diff
changeset
|
63 |
val trace = Simplifier_Trace.generate_trace(PIDE.session, current_results) |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
64 |
new Simplifier_Trace_Window(view, current_snapshot, trace) |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
65 |
} |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
66 |
|
| 75393 | 67 |
private def handle_update(follow: Boolean): Unit = {
|
|
56299
8201790fdeb9
more careful treatment of multiple command states (eval + prints): merge content that is actually required;
wenzelm
parents:
55825
diff
changeset
|
68 |
val (new_snapshot, new_command, new_results, new_id) = |
| 66082 | 69 |
PIDE.editor.current_node_snapshot(view) match {
|
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
70 |
case Some(snapshot) => |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
71 |
if (follow && !snapshot.is_outdated) {
|
| 66082 | 72 |
PIDE.editor.current_command(view, snapshot) match {
|
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
73 |
case Some(cmd) => |
| 65195 | 74 |
(snapshot, cmd, snapshot.command_results(cmd), cmd.id) |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
75 |
case None => |
|
56299
8201790fdeb9
more careful treatment of multiple command states (eval + prints): merge content that is actually required;
wenzelm
parents:
55825
diff
changeset
|
76 |
(Document.State.init.snapshot(), Command.empty, Command.Results.empty, 0L) |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
77 |
} |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
78 |
} |
|
56299
8201790fdeb9
more careful treatment of multiple command states (eval + prints): merge content that is actually required;
wenzelm
parents:
55825
diff
changeset
|
79 |
else (current_snapshot, current_command, current_results, current_id) |
|
8201790fdeb9
more careful treatment of multiple command states (eval + prints): merge content that is actually required;
wenzelm
parents:
55825
diff
changeset
|
80 |
case None => (current_snapshot, current_command, current_results, current_id) |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
81 |
} |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
82 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
83 |
current_snapshot = new_snapshot |
|
56299
8201790fdeb9
more careful treatment of multiple command states (eval + prints): merge content that is actually required;
wenzelm
parents:
55825
diff
changeset
|
84 |
current_command = new_command |
|
8201790fdeb9
more careful treatment of multiple command states (eval + prints): merge content that is actually required;
wenzelm
parents:
55825
diff
changeset
|
85 |
current_results = new_results |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
86 |
current_id = new_id |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
87 |
update_contents() |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
88 |
} |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
89 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
90 |
|
|
56715
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
91 |
/* main */ |
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
92 |
|
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
93 |
private val main = |
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
94 |
Session.Consumer[Any](getClass.getName) {
|
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
95 |
case _: Session.Global_Options => |
| 81491 | 96 |
GUI_Thread.later { output.handle_resize() }
|
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
97 |
|
|
56715
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
98 |
case changed: Session.Commands_Changed => |
|
57612
990ffb84489b
clarified module name: facilitate alternative GUI frameworks;
wenzelm
parents:
57593
diff
changeset
|
99 |
GUI_Thread.later { handle_update(do_update) }
|
|
56715
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
100 |
|
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
101 |
case Session.Caret_Focus => |
|
57612
990ffb84489b
clarified module name: facilitate alternative GUI frameworks;
wenzelm
parents:
57593
diff
changeset
|
102 |
GUI_Thread.later { handle_update(do_update) }
|
|
56715
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
103 |
|
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
104 |
case Simplifier_Trace.Event => |
|
57612
990ffb84489b
clarified module name: facilitate alternative GUI frameworks;
wenzelm
parents:
57593
diff
changeset
|
105 |
GUI_Thread.later { handle_update(do_update) }
|
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
106 |
} |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
107 |
|
| 75393 | 108 |
override def init(): Unit = {
|
|
56715
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
109 |
PIDE.session.global_options += main |
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
110 |
PIDE.session.commands_changed += main |
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
111 |
PIDE.session.caret_focus += main |
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
112 |
PIDE.session.trace_events += main |
| 81491 | 113 |
output.init() |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
114 |
handle_update(true) |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
115 |
} |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
116 |
|
| 75393 | 117 |
override def exit(): Unit = {
|
|
56715
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
118 |
PIDE.session.global_options -= main |
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
119 |
PIDE.session.commands_changed -= main |
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
120 |
PIDE.session.caret_focus -= main |
|
52125652e82a
clarified Session.Consumer, with Session.Outlet managed by dispatcher thread;
wenzelm
parents:
56662
diff
changeset
|
121 |
PIDE.session.trace_events -= main |
| 81491 | 122 |
output.exit() |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
123 |
} |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
124 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
125 |
|
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
126 |
/* controls */ |
|
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
127 |
|
| 66205 | 128 |
private val controls = |
| 66206 | 129 |
Wrap_Panel( |
| 66205 | 130 |
List( |
| 75854 | 131 |
new GUI.Check("Auto update", init = do_update) {
|
| 75852 | 132 |
override def clicked(state: Boolean): Unit = {
|
133 |
do_update = state |
|
134 |
handle_update(do_update) |
|
| 66205 | 135 |
} |
136 |
}, |
|
| 75853 | 137 |
new GUI.Button("Update") { override def clicked(): Unit = handle_update(true) },
|
| 66205 | 138 |
new Separator(Orientation.Vertical), |
| 75853 | 139 |
new GUI.Button("Show trace") { override def clicked(): Unit = show_trace() },
|
140 |
new GUI.Button("Clear memory") {
|
|
141 |
override def clicked(): Unit = Simplifier_Trace.clear_memory(PIDE.session) |
|
| 66205 | 142 |
})) |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
143 |
|
| 66206 | 144 |
private val answers = Wrap_Panel(Nil, Wrap_Panel.Alignment.Left) |
|
57593
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
145 |
|
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
146 |
add(controls.peer, BorderLayout.NORTH) |
|
57593
2f7d91242b99
proper Swing buttons instead of active areas within text (by Lars Hupel);
wenzelm
parents:
56770
diff
changeset
|
147 |
add(answers.peer, BorderLayout.SOUTH) |
|
55316
885500f4aa6a
interactive simplifier trace: new panel in Isabelle/jEdit to inspect and modify simplification state
Lars Hupel <lars.hupel@mytum.de>
parents:
diff
changeset
|
148 |
} |