adhoc reset of blink rate;
authorwenzelm
Sun, 10 Jan 2010 15:42:31 +0100
changeset 34852 d21c997104c4
parent 34851 304a86164dd2
child 34853 32b49207ca20
adhoc reset of blink rate; bind "console" instance;
src/Tools/jEdit/src/jedit/scala_console.scala
--- a/src/Tools/jEdit/src/jedit/scala_console.scala	Sun Jan 10 15:15:04 2010 +0100
+++ b/src/Tools/jEdit/src/jedit/scala_console.scala	Sun Jan 10 15:42:31 2010 +0100
@@ -97,6 +97,8 @@
 
   override def openConsole(console: Console)
   {
+    console.getOutputPane.getCaret.setBlinkRate(0)  // FIXME property!?
+
     val settings = new GenericRunnerSettings(report_error)
     settings.classpath.value = reconstruct_classpath()
 
@@ -106,6 +108,7 @@
     }
     interp.setContextClassLoader
     interp.bind("view", "org.gjt.sp.jedit.View", console.getView)
+    interp.bind("console", "console.Console", console)
     interp.interpret("import isabelle.jedit.Isabelle")
 
     interpreters += (console -> interp)
@@ -122,7 +125,8 @@
      "This shell evaluates Isabelle/Scala expressions.\n\n" +
      "The following special toplevel bindings are provided:\n" +
      "  view      -- current jEdit/Swing view (e.g. view.getBuffer, view.getTextArea)\n" +
-     "  Isabelle  -- main Isabelle plugin instance (e.g. Isabelle.system, Isabelle.session)\n")
+     "  console   -- jEdit Console plugin instance\n" +
+     "  Isabelle  -- Isabelle plugin instance (e.g. Isabelle.system, Isabelle.session)\n")
   }
 
   override def printPrompt(console: Console, out: Output)