diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2015-06-12 15:19:00 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2015-06-17 13:36:55 -0700 |
commit | 43139faa4f4348b95907e06883f2fefb41ea3a3b (patch) | |
tree | eadd8bf7ade4948c0d989b7f5038b8824eb43152 /src/repl/scala/tools/nsc/interpreter/InteractiveReader.scala | |
parent | 43a56fb5a1b6450ce2bdf8f73ab30ca1b16d0778 (diff) | |
download | scala-43139faa4f4348b95907e06883f2fefb41ea3a3b.tar.gz scala-43139faa4f4348b95907e06883f2fefb41ea3a3b.tar.bz2 scala-43139faa4f4348b95907e06883f2fefb41ea3a3b.zip |
Centralize dependencies on jline
Code that depends on jline is now in package `scala.tools.nsc.interpreter.jline`.
To make this possible, remove the `entries` functionality from `History`,
and add the `historicize` method. Also provide an overload for `asStrings`.
Clean up a little along the way in `JLineHistory.scala` and `JLineReader.scala`.
Next step: fall back to an embedded jline when the expected jline jar
is not on the classpath.
The gist of the refactor: https://gist.github.com/adriaanm/02e110d4da0a585480c1
Diffstat (limited to 'src/repl/scala/tools/nsc/interpreter/InteractiveReader.scala')
-rw-r--r-- | src/repl/scala/tools/nsc/interpreter/InteractiveReader.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/repl/scala/tools/nsc/interpreter/InteractiveReader.scala b/src/repl/scala/tools/nsc/interpreter/InteractiveReader.scala index ed69d449cb..71753a3e39 100644 --- a/src/repl/scala/tools/nsc/interpreter/InteractiveReader.scala +++ b/src/repl/scala/tools/nsc/interpreter/InteractiveReader.scala @@ -13,6 +13,8 @@ import Properties.isMac /** Reads lines from an input stream */ trait InteractiveReader { + def postInit(): Unit = {} + val interactive: Boolean def reset(): Unit |