equal
deleted
inserted
replaced
10 |
10 |
11 |
11 |
12 import java.util.Properties |
12 import java.util.Properties |
13 |
13 |
14 import scala.collection.mutable.{HashMap, HashSet} |
14 import scala.collection.mutable.{HashMap, HashSet} |
|
15 import scala.collection.immutable.{TreeSet} |
15 |
16 |
16 import org.gjt.sp.util.Log |
17 import org.gjt.sp.util.Log |
17 |
18 |
18 import isabelle.proofdocument.{ProofDocument, Text, Token} |
19 import isabelle.proofdocument.{ProofDocument, Text, Token} |
19 |
20 |
35 override def +=(name: String) = { |
36 override def +=(name: String) = { |
36 decl_info.event(name, OuterKeyword.MINOR) |
37 decl_info.event(name, OuterKeyword.MINOR) |
37 super.+=(name) |
38 super.+=(name) |
38 } |
39 } |
39 } |
40 } |
|
41 var _completions = new TreeSet[String] |
|
42 def completions = _completions |
|
43 /* // TODO: ask Makarius to make Interpretation.symbols public (here: read-only as 'symbol_map') |
|
44 val map = isabelle.jedit.Isabelle.symbols.symbol_map |
|
45 for(xsymb <- map.keys) { |
|
46 _completions += xsymb |
|
47 if(map(xsymb).get("abbrev").isDefined) _completions += map(xsymb)("abbrev") |
|
48 } |
|
49 */ |
|
50 decl_info += (k_v => _completions += k_v._1) |
|
51 |
40 private var initialized = false |
52 private var initialized = false |
41 |
53 |
42 val activated = new EventBus[Unit] |
54 val activated = new EventBus[Unit] |
43 val command_info = new EventBus[Command] |
55 val command_info = new EventBus[Command] |
44 val output_info = new EventBus[String] |
56 val output_info = new EventBus[String] |