From 4fc5df304029179df2b71782f3897dd5eb059e97 Mon Sep 17 00:00:00 2001 From: Sascha Lisson Date: Wed, 23 Oct 2024 09:01:15 +0200 Subject: [PATCH] fix: generate to java instead of kotlin It's simpler and more stable. We have to reduce the complexity of the project and will focus on the server side version of the editor first. --- editor-common-mps/build.gradle.kts | 13 +- mps/.mps/modules.xml | 2 - mps/build.gradle.kts | 4 - ...e2kotlin.generator.templates@generator.mps | 1184 ------ ...delix.mps.baseLanguage2kotlin.behavior.mps | 12 - ...ix.mps.baseLanguage2kotlin.constraints.mps | 19 - ...modelix.mps.baseLanguage2kotlin.editor.mps | 114 - ...elix.mps.baseLanguage2kotlin.structure.mps | 99 - ...odelix.mps.baseLanguage2kotlin.textGen.mps | 68 - ...lix.mps.baseLanguage2kotlin.typesystem.mps | 11 - .../org.modelix.mps.baseLanguage2kotlin.mpl | 157 - ...deKotlin.generator.templates@generator.mps | 380 -- ....mps.baseLanguageInsideKotlin.behavior.mps | 12 - ...s.baseLanguageInsideKotlin.constraints.mps | 19 - ...ix.mps.baseLanguageInsideKotlin.editor.mps | 109 - ...mps.baseLanguageInsideKotlin.structure.mps | 78 - ...ps.baseLanguageInsideKotlin.typesystem.mps | 11 - ...g.modelix.mps.baseLanguageInsideKotlin.mpl | 129 - ...mps.notation.impl.baseLanguage.modelix.mps | 77 +- ...modelix.mps.notation.impl.baseLanguage.msd | 3 +- ...notation.generator.templates@generator.mps | 3414 ++++++++++------- .../org.modelix.mps.notation.structure.mps | 10 +- .../org.modelix.mps.notation.mpl | 18 +- ...rg.modelix.mps.react.impl.baseLanguage.msd | 3 - .../org.modelix.mps.react.mpl | 6 - .../org.modelix.mps.spreadsheets.notation.msd | 2 - ...x.mps.spreadsheets.sandbox.permissions.mps | 39 +- .../org.modelix.mps.spreadsheets.modelix.mps | 17 +- .../org.modelix.mps.spreadsheets.mpl | 4 - .../org.modelix.mps.webaspect.devkit.devkit | 5 +- .../org.modelix.mps.webaspect.genplan.mps | 42 +- .../build.gradle.kts | 2 +- .../editor/ssr/mps/BaseLanguageTests.kt | 4 +- projectional-editor-ssr-mps/build.gradle.kts | 9 +- .../org/modelix/editor/CellTemplateBuilder.kt | 2 +- react-ssr-mps/build.gradle.kts | 8 +- 36 files changed, 2096 insertions(+), 3990 deletions(-) delete mode 100644 mps/modules/org.modelix.mps.baseLanguage2kotlin/generator/templates/org.modelix.mps.baseLanguage2kotlin.generator.templates@generator.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.behavior.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.constraints.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.editor.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.structure.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.textGen.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.typesystem.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguage2kotlin/org.modelix.mps.baseLanguage2kotlin.mpl delete mode 100644 mps/modules/org.modelix.mps.baseLanguageInsideKotlin/generator/templates/org.modelix.mps.baseLanguageInsideKotlin.generator.templates@generator.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.behavior.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.constraints.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.editor.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.structure.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.typesystem.mps delete mode 100644 mps/modules/org.modelix.mps.baseLanguageInsideKotlin/org.modelix.mps.baseLanguageInsideKotlin.mpl diff --git a/editor-common-mps/build.gradle.kts b/editor-common-mps/build.gradle.kts index 618370fd..2e9d283e 100644 --- a/editor-common-mps/build.gradle.kts +++ b/editor-common-mps/build.gradle.kts @@ -91,18 +91,19 @@ tasks { outputFolder(defaultDestinationDir.get().resolve(project.name).resolve("languages")) runtimeJars.forEach { javaJar(it.name) - kotlinJar(it.name) +// kotlinJar(it.name) } - kotlinJarFromMPS("util-8.jar") +// kotlinJarFromMPS("util-8.jar") javaJarFromMPS("util-8.jar") - kotlinJarFromMPS("annotations.jar") +// kotlinJarFromMPS("annotations.jar") moduleDependency(KnownModuleIds.Annotations) moduleDependency(KnownModuleIds.JDK) moduleDependency(KnownModuleIds.MPS_OpenAPI) + moduleDependency(KnownModuleIds.MPS_Core) moduleDependency(KnownModuleIds.MPS_IDEA) - moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib) - moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib_jvm) - moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stubs) +// moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib) +// moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib_jvm) +// moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stubs) } } } diff --git a/mps/.mps/modules.xml b/mps/.mps/modules.xml index b7eeb653..7efe609e 100644 --- a/mps/.mps/modules.xml +++ b/mps/.mps/modules.xml @@ -2,8 +2,6 @@ - - diff --git a/mps/build.gradle.kts b/mps/build.gradle.kts index 2d0f8f34..c84e7425 100644 --- a/mps/build.gradle.kts +++ b/mps/build.gradle.kts @@ -21,15 +21,11 @@ mpsBuild { publication("editor-languages") { module("org.modelix.mps.webaspect.devkit") module("org.modelix.mps.webaspect.genplan") - module("org.modelix.mps.baseLanguage2kotlin") module("org.modelix.mps.notation") } publication("baseLanguage-notation") { module("org.modelix.mps.notation.impl.baseLanguage") } - publication("baseLanguageInsideKotlin") { - module("org.modelix.mps.baseLanguageInsideKotlin") - } publication("react") { module("org.modelix.mps.react") } diff --git a/mps/modules/org.modelix.mps.baseLanguage2kotlin/generator/templates/org.modelix.mps.baseLanguage2kotlin.generator.templates@generator.mps b/mps/modules/org.modelix.mps.baseLanguage2kotlin/generator/templates/org.modelix.mps.baseLanguage2kotlin.generator.templates@generator.mps deleted file mode 100644 index bad5e878..00000000 --- a/mps/modules/org.modelix.mps.baseLanguage2kotlin/generator/templates/org.modelix.mps.baseLanguage2kotlin.generator.templates@generator.mps +++ /dev/null @@ -1,1184 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.behavior.mps b/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.behavior.mps deleted file mode 100644 index 3cb979bf..00000000 --- a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.behavior.mps +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.constraints.mps b/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.constraints.mps deleted file mode 100644 index b7ffa56c..00000000 --- a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.constraints.mps +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.editor.mps b/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.editor.mps deleted file mode 100644 index a9de1dfc..00000000 --- a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.editor.mps +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.structure.mps b/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.structure.mps deleted file mode 100644 index 450a553b..00000000 --- a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.structure.mps +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.textGen.mps b/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.textGen.mps deleted file mode 100644 index a40b554d..00000000 --- a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.textGen.mps +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.typesystem.mps b/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.typesystem.mps deleted file mode 100644 index 3cc51718..00000000 --- a/mps/modules/org.modelix.mps.baseLanguage2kotlin/models/org.modelix.mps.baseLanguage2kotlin.typesystem.mps +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguage2kotlin/org.modelix.mps.baseLanguage2kotlin.mpl b/mps/modules/org.modelix.mps.baseLanguage2kotlin/org.modelix.mps.baseLanguage2kotlin.mpl deleted file mode 100644 index 249593fd..00000000 --- a/mps/modules/org.modelix.mps.baseLanguage2kotlin/org.modelix.mps.baseLanguage2kotlin.mpl +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - f3061a53-9226-4cc5-a443-f952ceaf5816(jetbrains.mps.baseLanguage) - 6b3888c1-9802-44d8-8baf-f8e6c33ed689(jetbrains.mps.kotlin) - 7866978e-a0f0-4cc7-81bc-4d213d9375e1(jetbrains.mps.lang.smodel) - 771cf896-ab1b-409b-93b4-48c3bbb6b23f(org.modelix.mps.editor.ssr.stubs) - c72da2b9-7cce-4447-8389-f407dc1158b7(jetbrains.mps.lang.structure) - 6ed54515-acc8-4d1e-a16c-9fd6cfe951ea(MPS.Core) - ceab5195-25ea-4f22-9b92-103b95ca8c0c(jetbrains.mps.lang.core) - df345b11-b8c7-4213-ac66-48d2a9b75d88(jetbrains.mps.baseLanguageInternal) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - f3061a53-9226-4cc5-a443-f952ceaf5816(jetbrains.mps.baseLanguage) - ceab5195-25ea-4f22-9b92-103b95ca8c0c(jetbrains.mps.lang.core) - c7b55726-1795-47bd-aa21-714ac1e30f21(org.modelix.mps.notation) - eb56ebf4-df56-438e-af06-fc1cd08b495a(jetbrains.mps.kotlin.smodel) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6b3888c1-9802-44d8-8baf-f8e6c33ed689(jetbrains.mps.kotlin) - - - diff --git a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/generator/templates/org.modelix.mps.baseLanguageInsideKotlin.generator.templates@generator.mps b/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/generator/templates/org.modelix.mps.baseLanguageInsideKotlin.generator.templates@generator.mps deleted file mode 100644 index 8482d6ea..00000000 --- a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/generator/templates/org.modelix.mps.baseLanguageInsideKotlin.generator.templates@generator.mps +++ /dev/null @@ -1,380 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.behavior.mps b/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.behavior.mps deleted file mode 100644 index 2e39b411..00000000 --- a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.behavior.mps +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.constraints.mps b/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.constraints.mps deleted file mode 100644 index ba9c44fe..00000000 --- a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.constraints.mps +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.editor.mps b/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.editor.mps deleted file mode 100644 index 0702701b..00000000 --- a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.editor.mps +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.structure.mps b/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.structure.mps deleted file mode 100644 index 96dba9f9..00000000 --- a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.structure.mps +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.typesystem.mps b/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.typesystem.mps deleted file mode 100644 index 99998c26..00000000 --- a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/models/org.modelix.mps.baseLanguageInsideKotlin.typesystem.mps +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/org.modelix.mps.baseLanguageInsideKotlin.mpl b/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/org.modelix.mps.baseLanguageInsideKotlin.mpl deleted file mode 100644 index 6efe282e..00000000 --- a/mps/modules/org.modelix.mps.baseLanguageInsideKotlin/org.modelix.mps.baseLanguageInsideKotlin.mpl +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - f3061a53-9226-4cc5-a443-f952ceaf5816(jetbrains.mps.baseLanguage) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - f3061a53-9226-4cc5-a443-f952ceaf5816(jetbrains.mps.baseLanguage) - 9e4ff22b-60f1-43ef-a50b-f9f0fcec22e0(jetbrains.mps.kotlin.javaRefs) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6b3888c1-9802-44d8-8baf-f8e6c33ed689(jetbrains.mps.kotlin) - - - diff --git a/mps/modules/org.modelix.mps.notation.impl.baseLanguage/models/org.modelix.mps.notation.impl.baseLanguage.modelix.mps b/mps/modules/org.modelix.mps.notation.impl.baseLanguage/models/org.modelix.mps.notation.impl.baseLanguage.modelix.mps index 15ed8f0f..fec81555 100644 --- a/mps/modules/org.modelix.mps.notation.impl.baseLanguage/models/org.modelix.mps.notation.impl.baseLanguage.modelix.mps +++ b/mps/modules/org.modelix.mps.notation.impl.baseLanguage/models/org.modelix.mps.notation.impl.baseLanguage.modelix.mps @@ -25,11 +25,6 @@ - - - - - @@ -1351,12 +1346,10 @@ - - - - - - + + + + @@ -2475,12 +2468,10 @@ - - - - - - + + + + @@ -2704,12 +2695,10 @@ - - - - - - + + + + @@ -3377,12 +3366,10 @@ - - - - - - + + + + @@ -3391,12 +3378,10 @@ - - - - - - + + + + @@ -3445,12 +3430,10 @@ - - - - - - + + + + @@ -3469,13 +3452,11 @@ - - - - - - - + + + + + diff --git a/mps/modules/org.modelix.mps.notation.impl.baseLanguage/org.modelix.mps.notation.impl.baseLanguage.msd b/mps/modules/org.modelix.mps.notation.impl.baseLanguage/org.modelix.mps.notation.impl.baseLanguage.msd index e09b5901..f943b704 100644 --- a/mps/modules/org.modelix.mps.notation.impl.baseLanguage/org.modelix.mps.notation.impl.baseLanguage.msd +++ b/mps/modules/org.modelix.mps.notation.impl.baseLanguage/org.modelix.mps.notation.impl.baseLanguage.msd @@ -21,6 +21,7 @@ + @@ -32,8 +33,6 @@ - - diff --git a/mps/modules/org.modelix.mps.notation/generator/templates/org.modelix.mps.notation.generator.templates@generator.mps b/mps/modules/org.modelix.mps.notation/generator/templates/org.modelix.mps.notation.generator.templates@generator.mps index 50580296..0f99dac2 100644 --- a/mps/modules/org.modelix.mps.notation/generator/templates/org.modelix.mps.notation.generator.templates@generator.mps +++ b/mps/modules/org.modelix.mps.notation/generator/templates/org.modelix.mps.notation.generator.templates@generator.mps @@ -2,97 +2,133 @@ - - - - - - + - - - - - - - - - - - - - - - + + + + + + + + + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + @@ -101,12 +137,8 @@ - - - - - - + + @@ -172,96 +204,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -273,43 +221,16 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -325,23 +246,27 @@ - + + + + + + + + + + + - - - - - - - + @@ -376,10 +301,19 @@ + + + + + + + + + @@ -389,38 +323,81 @@ - + - + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -428,97 +405,238 @@ - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -526,6 +644,13 @@ + + + + + + + @@ -533,264 +658,356 @@ - + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + - - + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - + + + + - - - - - - - - - - - - - - + + + + + - - + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - + - - - + + + - - - - - - - - - - - - - - - + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + @@ -799,415 +1016,354 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - + + - - - - - - - - - - - - - - + + + + + + + + + + - - - + - - - - - - - - - - - - - - + + + + - - - - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + - - + + + + + + - - - - - - - - - - - - - - - - - - - + + + + @@ -1215,462 +1371,568 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + - + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + - + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - + - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - @@ -1728,25 +1990,72 @@ - + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + @@ -1754,37 +2063,84 @@ - + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + - - - - - - + + + + + + @@ -1792,25 +2148,72 @@ - + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + @@ -1818,42 +2221,156 @@ - + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + @@ -1861,49 +2378,87 @@ - + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - + + + + + + + + + + - - - - + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -1912,44 +2467,68 @@ - - - - + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1957,70 +2536,73 @@ - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + + + + + + - - - - - - - - - - - - - + + + + + + + + + + - - + + - + - - + + @@ -2031,110 +2613,66 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - + diff --git a/mps/modules/org.modelix.mps.notation/models/org.modelix.mps.notation.structure.mps b/mps/modules/org.modelix.mps.notation/models/org.modelix.mps.notation.structure.mps index 769c5035..7888c37c 100644 --- a/mps/modules/org.modelix.mps.notation/models/org.modelix.mps.notation.structure.mps +++ b/mps/modules/org.modelix.mps.notation/models/org.modelix.mps.notation.structure.mps @@ -8,7 +8,6 @@ - @@ -108,7 +107,7 @@ - + @@ -193,6 +192,11 @@ + + + + + @@ -322,7 +326,7 @@ - + diff --git a/mps/modules/org.modelix.mps.notation/org.modelix.mps.notation.mpl b/mps/modules/org.modelix.mps.notation/org.modelix.mps.notation.mpl index b3c61ccc..a49c39c5 100644 --- a/mps/modules/org.modelix.mps.notation/org.modelix.mps.notation.mpl +++ b/mps/modules/org.modelix.mps.notation/org.modelix.mps.notation.mpl @@ -27,24 +27,20 @@ 771cf896-ab1b-409b-93b4-48c3bbb6b23f(org.modelix.mps.editor.ssr.stubs) c72da2b9-7cce-4447-8389-f407dc1158b7(jetbrains.mps.lang.structure) - 6b3888c1-9802-44d8-8baf-f8e6c33ed689(jetbrains.mps.kotlin) - 8f2def56-7502-4f14-994f-472d404e528c(org.modelix.mps.baseLanguage2kotlin) - cc24a92d-c78e-4016-a5d4-902df7135727(org.modelix.mps.baseLanguageInsideKotlin) + 208eaf68-fd3a-497a-a4b6-4923ff457c3b(org.modelix.mps.editor.common.stubs) + 6354ebe7-c22a-4a0f-ac54-50b52ab9b065(JDK) - + - - - @@ -55,7 +51,6 @@ - @@ -69,17 +64,12 @@ - - - - - @@ -93,7 +83,6 @@ 6b3888c1-9802-44d8-8baf-f8e6c33ed689(jetbrains.mps.kotlin) 2d3c70e9-aab2-4870-8d8d-6036800e4103(jetbrains.mps.kernel) f3061a53-9226-4cc5-a443-f952ceaf5816(jetbrains.mps.baseLanguage) - 8f2def56-7502-4f14-994f-472d404e528c(org.modelix.mps.baseLanguage2kotlin) 7866978e-a0f0-4cc7-81bc-4d213d9375e1(jetbrains.mps.lang.smodel) @@ -151,7 +140,6 @@ - diff --git a/mps/modules/org.modelix.mps.react.impl.baseLanguage/org.modelix.mps.react.impl.baseLanguage.msd b/mps/modules/org.modelix.mps.react.impl.baseLanguage/org.modelix.mps.react.impl.baseLanguage.msd index b19f2cca..255f50f5 100644 --- a/mps/modules/org.modelix.mps.react.impl.baseLanguage/org.modelix.mps.react.impl.baseLanguage.msd +++ b/mps/modules/org.modelix.mps.react.impl.baseLanguage/org.modelix.mps.react.impl.baseLanguage.msd @@ -38,9 +38,6 @@ - - - diff --git a/mps/modules/org.modelix.mps.react/org.modelix.mps.react.mpl b/mps/modules/org.modelix.mps.react/org.modelix.mps.react.mpl index 96bc29d7..e28fa2df 100644 --- a/mps/modules/org.modelix.mps.react/org.modelix.mps.react.mpl +++ b/mps/modules/org.modelix.mps.react/org.modelix.mps.react.mpl @@ -65,9 +65,6 @@ - - - @@ -150,9 +147,6 @@ - - - diff --git a/mps/modules/org.modelix.mps.spreadsheets.notation/org.modelix.mps.spreadsheets.notation.msd b/mps/modules/org.modelix.mps.spreadsheets.notation/org.modelix.mps.spreadsheets.notation.msd index b4cff253..363791be 100644 --- a/mps/modules/org.modelix.mps.spreadsheets.notation/org.modelix.mps.spreadsheets.notation.msd +++ b/mps/modules/org.modelix.mps.spreadsheets.notation/org.modelix.mps.spreadsheets.notation.msd @@ -32,8 +32,6 @@ - - diff --git a/mps/modules/org.modelix.mps.spreadsheets.sandbox/models/org.modelix.mps.spreadsheets.sandbox.permissions.mps b/mps/modules/org.modelix.mps.spreadsheets.sandbox/models/org.modelix.mps.spreadsheets.sandbox.permissions.mps index 7a168ed0..fe453022 100644 --- a/mps/modules/org.modelix.mps.spreadsheets.sandbox/models/org.modelix.mps.spreadsheets.sandbox.permissions.mps +++ b/mps/modules/org.modelix.mps.spreadsheets.sandbox/models/org.modelix.mps.spreadsheets.sandbox.permissions.mps @@ -17,7 +17,11 @@ + + + + @@ -34,10 +38,17 @@ + + + + + + + @@ -612,7 +623,18 @@ + + + + + + + + + + + @@ -621,7 +643,22 @@ - + + + + + + + + + + + + + + + + diff --git a/mps/modules/org.modelix.mps.spreadsheets/models/org.modelix.mps.spreadsheets.modelix.mps b/mps/modules/org.modelix.mps.spreadsheets/models/org.modelix.mps.spreadsheets.modelix.mps index 3658ad3b..d8836900 100644 --- a/mps/modules/org.modelix.mps.spreadsheets/models/org.modelix.mps.spreadsheets.modelix.mps +++ b/mps/modules/org.modelix.mps.spreadsheets/models/org.modelix.mps.spreadsheets.modelix.mps @@ -6,7 +6,6 @@ - @@ -15,7 +14,6 @@ - @@ -301,11 +299,6 @@ - - - - - @@ -3559,12 +3552,10 @@ - - - - - - + + + + diff --git a/mps/modules/org.modelix.mps.spreadsheets/org.modelix.mps.spreadsheets.mpl b/mps/modules/org.modelix.mps.spreadsheets/org.modelix.mps.spreadsheets.mpl index fcfb7b87..b6ed9aaf 100644 --- a/mps/modules/org.modelix.mps.spreadsheets/org.modelix.mps.spreadsheets.mpl +++ b/mps/modules/org.modelix.mps.spreadsheets/org.modelix.mps.spreadsheets.mpl @@ -103,7 +103,6 @@ - @@ -120,9 +119,6 @@ - - - diff --git a/mps/modules/org.modelix.mps.webaspect.devkit/org.modelix.mps.webaspect.devkit.devkit b/mps/modules/org.modelix.mps.webaspect.devkit/org.modelix.mps.webaspect.devkit.devkit index fd8a86d1..cba1f83c 100644 --- a/mps/modules/org.modelix.mps.webaspect.devkit/org.modelix.mps.webaspect.devkit.devkit +++ b/mps/modules/org.modelix.mps.webaspect.devkit/org.modelix.mps.webaspect.devkit.devkit @@ -1,15 +1,16 @@ - - + + + 02ad200e-1634-449d-8b0b-db88f7ea0f2d(org.modelix.mps.webaspect.genplan) diff --git a/mps/modules/org.modelix.mps.webaspect.genplan/models/org.modelix.mps.webaspect.genplan.mps b/mps/modules/org.modelix.mps.webaspect.genplan/models/org.modelix.mps.webaspect.genplan.mps index 9090e2aa..79402408 100644 --- a/mps/modules/org.modelix.mps.webaspect.genplan/models/org.modelix.mps.webaspect.genplan.mps +++ b/mps/modules/org.modelix.mps.webaspect.genplan/models/org.modelix.mps.webaspect.genplan.mps @@ -47,42 +47,30 @@ - + - - - - + + + + - + - - - - + + + + - + - - - - - - - - - - - - - - - - + + + + diff --git a/projectional-editor-ssr-mps-languages/build.gradle.kts b/projectional-editor-ssr-mps-languages/build.gradle.kts index 9be6eb3d..29d6e92c 100644 --- a/projectional-editor-ssr-mps-languages/build.gradle.kts +++ b/projectional-editor-ssr-mps-languages/build.gradle.kts @@ -121,7 +121,7 @@ tasks { intoChild(pluginName.map { "$it/META-INF" }) .from(patchPluginXml.flatMap { it.outputFiles }) - listOf("editor-languages", "baseLanguage-notation", "baseLanguageInsideKotlin", "react").forEach { publicationName -> + listOf("editor-languages", "baseLanguage-notation", "react").forEach { publicationName -> intoChild(pluginName.map { "$it/languages" }) .from(zipTree({ project(":mps").layout.buildDirectory.file("mpsbuild/publications/$publicationName.zip") })) .eachFile { diff --git a/projectional-editor-ssr-mps-languages/src/test/kotlin/org/modelix/editor/ssr/mps/BaseLanguageTests.kt b/projectional-editor-ssr-mps-languages/src/test/kotlin/org/modelix/editor/ssr/mps/BaseLanguageTests.kt index 5ca51572..9cbcbfc9 100644 --- a/projectional-editor-ssr-mps-languages/src/test/kotlin/org/modelix/editor/ssr/mps/BaseLanguageTests.kt +++ b/projectional-editor-ssr-mps-languages/src/test/kotlin/org/modelix/editor/ssr/mps/BaseLanguageTests.kt @@ -284,12 +284,12 @@ class BaseLanguageTests : TestBase("SimpleProject") { } } """) - typeText("string") + typeText("int") pressKey(KnownKeys.Tab) typeText("p2") assertFinalEditorText(""" public class Class1 { - public void method1(int p1, string p2) { + public void method1(int p1, int p2) { } } diff --git a/projectional-editor-ssr-mps/build.gradle.kts b/projectional-editor-ssr-mps/build.gradle.kts index 14d109b8..05cbe80d 100644 --- a/projectional-editor-ssr-mps/build.gradle.kts +++ b/projectional-editor-ssr-mps/build.gradle.kts @@ -96,15 +96,16 @@ tasks { outputFolder(defaultDestinationDir.get().resolve(project.name).resolve("languages")) runtimeJars.filterNot { jarsInBasePlugin.contains(it.name) }.forEach { javaJar(it.name) - kotlinJar(it.name) +// kotlinJar(it.name) } moduleDependency(ModuleIdAndName(ModuleId("208eaf68-fd3a-497a-a4b6-4923ff457c3b"), "org.modelix.mps.editor.common.stubs")) moduleDependency(KnownModuleIds.JDK) + moduleDependency(KnownModuleIds.Annotations) moduleDependency(KnownModuleIds.MPS_OpenAPI) moduleDependency(KnownModuleIds.MPS_IDEA) - moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib) - moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib_jvm) - moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stubs) +// moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib) +// moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib_jvm) +// moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stubs) } } } diff --git a/projectional-editor/src/commonMain/kotlin/org/modelix/editor/CellTemplateBuilder.kt b/projectional-editor/src/commonMain/kotlin/org/modelix/editor/CellTemplateBuilder.kt index dc3c8e4f..dba55b67 100644 --- a/projectional-editor/src/commonMain/kotlin/org/modelix/editor/CellTemplateBuilder.kt +++ b/projectional-editor/src/commonMain/kotlin/org/modelix/editor/CellTemplateBuilder.kt @@ -62,7 +62,7 @@ open class CellTemplateBuilder(val template: CellTe } } - protected fun withUntypedNode(body: (INode) -> Unit) { + fun withUntypedNode(body: (INode) -> Unit) { template.withNode += body } diff --git a/react-ssr-mps/build.gradle.kts b/react-ssr-mps/build.gradle.kts index c0393733..3d98e156 100644 --- a/react-ssr-mps/build.gradle.kts +++ b/react-ssr-mps/build.gradle.kts @@ -87,15 +87,15 @@ tasks { outputFolder(defaultDestinationDir.get().resolve(project.name).resolve("languages")) runtimeJars.filterNot { jarsInBasePlugin.contains(it.name) }.forEach { javaJar(it.name) - kotlinJar(it.name) +// kotlinJar(it.name) } moduleDependency(ModuleIdAndName(ModuleId("208eaf68-fd3a-497a-a4b6-4923ff457c3b"), "org.modelix.mps.editor.common.stubs")) moduleDependency(KnownModuleIds.JDK) moduleDependency(KnownModuleIds.MPS_OpenAPI) moduleDependency(KnownModuleIds.MPS_IDEA) - moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib) - moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib_jvm) - moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stubs) +// moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib) +// moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stdlib_jvm) +// moduleDependency(KnownModuleIds.jetbrains_mps_kotlin_stubs) } } }