Swing utilities.
authorwenzelm
Mon, 29 Dec 2008 20:06:31 +0100
changeset 29202 2454172eddae
parent 29201 03908107bc5b
child 29203 0c4effb73518
Swing utilities.
src/Pure/General/swing.scala
src/Pure/IsaMakefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Pure/General/swing.scala	Mon Dec 29 20:06:31 2008 +0100
@@ -0,0 +1,18 @@
+/*  Title:      Pure/General/swing.scala
+    Author:     Makarius
+
+Swing utilities.
+*/
+
+package isabelle
+
+import javax.swing.SwingUtilities
+
+object Swing
+{
+  def now(body: => Unit) =
+    SwingUtilities.invokeAndWait(new Runnable { def run = body })
+
+  def later(body: => Unit) =
+    SwingUtilities.invokeLater(new Runnable { def run = body })
+}
--- a/src/Pure/IsaMakefile	Mon Dec 29 18:30:05 2008 +0100
+++ b/src/Pure/IsaMakefile	Mon Dec 29 20:06:31 2008 +0100
@@ -121,11 +121,11 @@
 
 ## Scala material
 
-SCALA_FILES = General/event_bus.scala General/markup.scala	\
-  General/position.scala General/symbol.scala General/xml.scala	\
-  General/yxml.scala Isar/isar.scala Thy/thy_header.scala	\
-  Tools/isabelle_process.scala Tools/isabelle_syntax.scala	\
-  Tools/isabelle_system.scala
+SCALA_FILES = General/event_bus.scala General/markup.scala		\
+  General/position.scala General/swing.scala General/symbol.scala	\
+  General/xml.scala General/yxml.scala Isar/isar.scala			\
+  Thy/thy_header.scala Tools/isabelle_process.scala			\
+  Tools/isabelle_syntax.scala Tools/isabelle_system.scala
 
 
 SCALA_TARGET = $(ISABELLE_HOME)/lib/classes/Pure.jar