removed redundant CommandChangeInfo;
authorwenzelm
Sun, 28 Dec 2008 20:46:25 +0100
changeset 34452 eea0eae5f773
parent 34451 3b9d0074ed44
child 34453 dfa99a91951b
removed redundant CommandChangeInfo;
src/Tools/jEdit/src/jedit/TheoryView.scala
src/Tools/jEdit/src/prover/CommandChangeInfo.scala
src/Tools/jEdit/src/prover/Prover.scala
--- a/src/Tools/jEdit/src/jedit/TheoryView.scala	Sun Dec 28 20:35:34 2008 +0100
+++ b/src/Tools/jEdit/src/jedit/TheoryView.scala	Sun Dec 28 20:46:25 2008 +0100
@@ -11,7 +11,7 @@
 
 import isabelle.utils.EventSource
 import isabelle.proofdocument.Text
-import isabelle.prover.{Prover, Command, CommandChangeInfo}
+import isabelle.prover.{Prover, Command}
 import isabelle.prover.Command.Phase
 
 import java.awt.Graphics2D
--- a/src/Tools/jEdit/src/prover/CommandChangeInfo.scala	Sun Dec 28 20:35:34 2008 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-/*
- * @author Johannes Hölzl, TU Munich
- */
-
-package isabelle.prover
-
-class CommandChangeInfo(val command : Command)
--- a/src/Tools/jEdit/src/prover/Prover.scala	Sun Dec 28 20:35:34 2008 +0100
+++ b/src/Tools/jEdit/src/prover/Prover.scala	Sun Dec 28 20:46:25 2008 +0100
@@ -34,7 +34,7 @@
   private var initialized = false
     
   val activated = new EventSource[Unit]
-  val commandInfo = new EventSource[CommandChangeInfo]
+  val commandInfo = new EventSource[Command]
   val outputInfo = new EventSource[String]
   val allInfo = new EventSource[Result]
   var document = null : Document
@@ -47,8 +47,7 @@
     SwingUtilities.invokeLater(new Runnable { def run = body })
 
 
-  def fireChange(c : Command) =
-    swing { commandInfo.fire(new CommandChangeInfo(c)) }
+  def fireChange(c: Command) = swing { commandInfo.fire(c) }
 
   var workerThread = new Thread("isabelle.Prover: worker") {
     override def run() : Unit = {