File tree Expand file tree Collapse file tree
compiler/shared/src/main/scala/json Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import sbtcrossproject.CrossPlugin.autoImport.CrossType
22import sbtcrossproject .CrossProject
33import org .scalajs .sbtplugin .ScalaJSCrossVersion
44
5- val nlDependencyVersion = " 7.0.0-beta2-77a066a "
5+ val nlDependencyVersion = " 7.0.0-ccc8cd8 "
66
7- val parserJsDependencyVersion = " 0.4.0-77a066a "
7+ val parserJsDependencyVersion = " 0.4.0-ccc8cd8 "
88
99val scalazVersion = " 7.2.36"
1010
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ object WidgetRead {
194194 " plot" -> PlotReader ,
195195 " slider" -> SliderReader ,
196196 " switch" -> SwitchReader ,
197- " textBox" -> TextBoxReader ,
197+ " textBox" -> NoteReader ,
198198 " view" -> ViewReader
199199 )
200200 }
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ object WidgetToJson {
5959 case p : Plot => PlotWriter (p)
6060 case s : Slider => SliderWriter (s)
6161 case s : Switch => SwitchWriter (s)
62- case t : TextBox => TextBoxWriter (t)
62+ case t : TextBox => NoteWriter (t)
6363 case v : View => ViewWriter (v)
6464 case _ => CompilerErrors .failCompilation(s " Unknown widget type encountered: ${w.toString}" )
6565 }).asInstanceOf [JsObject ]
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import org.nlogo.tortoise.compiler.json.WidgetRead._
1212// scalastyle:off method.length
1313// scalastyle:off cyclomatic.complexity
1414// scalastyle:off line.size.limit
15- implicit object TextBoxReader extends JsonReader [TortoiseJson .JsObject , org.nlogo.core.TextBox ] {
15+ implicit object NoteReader extends JsonReader [TortoiseJson .JsObject , org.nlogo.core.TextBox ] {
1616 def apply (jsObject : TortoiseJson .JsObject ): ValidationNel [String , org.nlogo.core.TextBox ] = {
1717
1818 val v0 = JsonReader .readField[scala.Option [scala.Predef .String ]](jsObject, " display" )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ package org.nlogo.tortoise.compiler.json
55// scalastyle:off method.length
66// scalastyle:off cyclomatic.complexity
77// scalastyle:off line.size.limit
8- implicit object TextBoxWriter extends JsonWriter [org.nlogo.core.TextBox ] {
8+ implicit object NoteWriter extends JsonWriter [org.nlogo.core.TextBox ] {
99 import collection .immutable .ListMap
1010
1111 def apply (o : org.nlogo.core.TextBox ): TortoiseJson .JsObject = {
You can’t perform that action at this time.
0 commit comments