summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2007-07-13 15:48:15 +0000
committerLex Spoon <lex@lexspoon.org>2007-07-13 15:48:15 +0000
commit07833a931f89676a34e9b2ad8704cd14ab1a4ec9 (patch)
treed81ace7c19bd6f5aa95a59cd30dbf870bc028903
parent5fe375ba62a6f81d174abcdc06b157a646ef80d9 (diff)
downloadscala-07833a931f89676a34e9b2ad8704cd14ab1a4ec9.tar.gz
scala-07833a931f89676a34e9b2ad8704cd14ab1a4ec9.tar.bz2
scala-07833a931f89676a34e9b2ad8704cd14ab1a4ec9.zip
Remved a "new Run" from Global and moved it to ...
Remved a "new Run" from Global and moved it to Plugins.pluginOptionsHelp
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala4
-rw-r--r--src/compiler/scala/tools/nsc/plugins/Plugins.scala3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index 93ad566984..477f84e031 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -692,8 +692,4 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
def onlyPresentation = settings.doc.value
// used to disable caching in lampion IDE.
def inIDE = false
-
-
- // force some initialization
- new Run
}
diff --git a/src/compiler/scala/tools/nsc/plugins/Plugins.scala b/src/compiler/scala/tools/nsc/plugins/Plugins.scala
index 4b7e758293..2c37682757 100644
--- a/src/compiler/scala/tools/nsc/plugins/Plugins.scala
+++ b/src/compiler/scala/tools/nsc/plugins/Plugins.scala
@@ -161,6 +161,9 @@ trait Plugins { self: Global =>
/** Summary of the options for all loaded plugins */
def pluginOptionsHelp: String = {
+ new Run // force some initialization
+ // todo: it should not really be necessary....
+
val buf = new StringBuffer
for (plug <- plugins; help <- plug.optionsHelp) {
buf append ("Options for plugin " + plug.name + ":\n")