Skip to content

Commit e97428c

Browse files
committed
Use any loader instead of .nlogo loader
1 parent 2f56f08 commit e97428c

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ isSnapshot := true
1010

1111
netLogoExtName := "ls"
1212
netLogoClassManager := "org.nlogo.ls.LevelSpace"
13-
netLogoVersion := "7.0.0-beta1-c8d671e"
13+
netLogoVersion := "7.0.0-beta2"
1414
netLogoTestExtras += (baseDirectory.value / "test")
1515

1616
Compile / scalaSource := baseDirectory.value / "src" / "main"

src/main/InterfaceComponent.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ with ThemeSync {
9393
val uri = Paths.get(path).toUri
9494
interfacePanel.reset()
9595
val controller = new FileController(this, workspace)
96-
val loader = FileFormat.basicLoader
96+
val loader = FileFormat.standardAnyLoader(false, workspace.compiler.utilities)
9797
val modelOpt = OpenModelFromURI(uri, controller, loader, FileFormat.defaultConverter, Version)
9898
modelOpt.foreach(model => ReconfigureWorkspaceUI(this, uri, ModelType.Library, model, workspace))
9999
}

src/main/LevelSpaceMenu.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ object LevelSpaceMenu {
139139
FileDialog.setDirectory(App.app.workspace.getModelDir)
140140

141141
val ws = App.app.workspace
142-
val loader = FileFormat.basicLoader
142+
val loader = FileFormat.standardAnyLoader(false, ws.compiler.utilities)
143143
val controller = new SaveModel.Controller {
144144
def chooseFilePath(modelType: org.nlogo.api.ModelType): Option[java.net.URI] = {
145145
try {

src/main/ModelCodeTab.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ with ModelSavedEvent.Handler {
2424
var currentModel = Option.empty[Model]
2525

2626
locally {
27-
val loader = FileFormat.basicLoader
27+
val loader = FileFormat.standardAnyLoader(false, workspace.compiler.utilities)
2828
val controller = new OpenModel.Controller {
2929
def errorOpeningURI(uri: URI, exception: Exception): Unit = {
3030
throw new ExtensionException("Levelspace encountered an error while opening: " + Paths.get(uri).toString + ". " + exception.toString)
@@ -92,7 +92,7 @@ with ModelSavedEvent.Handler {
9292
save()
9393

9494
def save(): Unit = {
95-
val loader = FileFormat.basicLoader
95+
val loader = FileFormat.standardAnyLoader(false, workspace.compiler.utilities)
9696
val controller = new SaveModel.Controller {
9797
def chooseFilePath(modelType: ModelType): Option[URI] = {
9898
Some(Paths.get(workspace.getModelPath).toUri)

0 commit comments

Comments
 (0)