src/Tools/jEdit/src/prover/Prover.scala
changeset 34475 f963335dbc6b
parent 34471 1dac47492863
child 34477 e561d0915f28
--- a/src/Tools/jEdit/src/prover/Prover.scala	Sun Jan 11 22:02:27 2009 +0100
+++ b/src/Tools/jEdit/src/prover/Prover.scala	Mon Jan 12 20:49:37 2009 +0100
@@ -12,6 +12,7 @@
 import java.util.Properties
 
 import scala.collection.mutable.{HashMap, HashSet}
+import scala.collection.immutable.{TreeSet}
 
 import org.gjt.sp.util.Log
 
@@ -37,6 +38,17 @@
       super.+=(name)
     }
   }
+  var _completions = new TreeSet[String]
+  def completions = _completions
+  /* // TODO: ask Makarius to make Interpretation.symbols public (here: read-only as 'symbol_map')
+  val map = isabelle.jedit.Isabelle.symbols.symbol_map
+  for(xsymb <- map.keys) {
+    _completions += xsymb
+    if(map(xsymb).get("abbrev").isDefined) _completions += map(xsymb)("abbrev")
+  }
+  */
+  decl_info += (k_v => _completions += k_v._1)
+  
   private var initialized = false
 
   val activated = new EventBus[Unit]