Skip to content

Commit

Permalink
Merge pull request #942 from JetBrains/feature/kotllin_java_stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderpann authored Sep 6, 2024
2 parents f8fd011 + 7e6cbcb commit df4e86c
Show file tree
Hide file tree
Showing 19 changed files with 729 additions and 64 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project are documented in this file.

The format is *loosely* based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) .The project does *not* follow Semantic Versioning and the changes are documented in reverse chronological order, grouped by calendar month.

## September 2024

### Added

- A module stub solution *MPS.Kotlin* was added to support referencing Kotlin classes and libraries from MPS.ThirdParty.

## August 2024

### Added
Expand All @@ -20,7 +26,7 @@ The format is *loosely* based on [Keep a Changelog](https://keepachangelog.com/e
### Changed

- *de.slisson.mps.reflection*: The language uses the class ReflectionUtil directly and doesn't copy ReflectionUtil_copy in the model anymore.
- *com.mbeddr.mpsutil.editor.querylist.runtime*: Querylist calls model checks of target nodes less agressively.
- *com.mbeddr.mpsutil.editor.querylist.runtime*: Querylist calls model checks of target nodes less aggressively.

## July 2024

Expand Down
4 changes: 3 additions & 1 deletion code/.mps/modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
<modulePath path="$PROJECT_DIR$/htmlcell/solutions/de.itemis.mps.editor.htmlcell.runtime/de.itemis.mps.editor.htmlcell.runtime.msd" folder="widgets" />
<modulePath path="$PROJECT_DIR$/intentionsmenu/com.mbeddr.mpsutil.intentions.runtime/com.mbeddr.mpsutil.intentions.runtime.msd" folder="intentionsmenu" />
<modulePath path="$PROJECT_DIR$/intentionsmenu/com.mbeddr.mpsutil.intentions/com.mbeddr.mpsutil.intentions.mpl" folder="intentionsmenu" />
<modulePath path="$PROJECT_DIR$/kotlin/solutions/MPS.Kotlin/MPS.Kotlin.msd" folder="kotlin" />
<modulePath path="$PROJECT_DIR$/kotlin/solutions/kotlin.usage.test/kotlin.usage.test.msd" folder="kotlin" />
<modulePath path="$PROJECT_DIR$/languages/com.mbeddr.mpsutil.intentions.sandboxlang/com.mbeddr.mpsutil.intentions.sandboxlang.mpl" folder="intentionsmenu" />
<modulePath path="$PROJECT_DIR$/languages/de.itemis.model.merge.baselang/de.itemis.model.merge.baselang.mpl" folder="modelmerger2" />
<modulePath path="$PROJECT_DIR$/languages/de.itemis.model.merge.baselang/sandbox/de.itemis.model.merge.baselang.sandbox.msd" folder="modelmerger2" />
Expand Down Expand Up @@ -202,7 +204,7 @@
<modulePath path="$PROJECT_DIR$/tables/solutions/de.slisson.mps.testutils/de.slisson.mps.testutils.msd" folder="tables" />
<modulePath path="$PROJECT_DIR$/tables/solutions/test.de.slisson.mps.tables/test.de.slisson.mps.tables.msd" folder="tables" />
<modulePath path="$PROJECT_DIR$/third-party/solutions/MPS.ThirdParty/MPS.ThirdParty.msd" folder="3rd-party" />
<modulePath path="$PROJECT_DIR$/third-party/solutions/third.party.usage.test/third.party.usage.test.msd" folder="" />
<modulePath path="$PROJECT_DIR$/third-party/solutions/third.party.usage.test/third.party.usage.test.msd" folder="3rd-party" />
<modulePath path="$PROJECT_DIR$/tooltips/solutions/de.itemis.mps.tooltips.runtime/de.itemis.mps.tooltips.runtime.msd" folder="tooltips" />
<modulePath path="$PROJECT_DIR$/treenotation/com.mbeddr.mpsutil.treenotation.runtime/com.mbeddr.mpsutil.treenotation.runtime.msd" folder="treenotation" />
<modulePath path="$PROJECT_DIR$/treenotation/com.mbeddr.mpsutil.treenotation.sandbox/com.mbeddr.mpsutil.treenotation.sandbox.msd" folder="treenotation" />
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
<module reference="7866978e-a0f0-4cc7-81bc-4d213d9375e1(jetbrains.mps.lang.smodel)" version="1" />
<module reference="c72da2b9-7cce-4447-8389-f407dc1158b7(jetbrains.mps.lang.structure)" version="0" />
<module reference="9ded098b-ad6a-4657-bfd9-48636cfe8bc3(jetbrains.mps.lang.traceable)" version="0" />
<module reference="5ad14eca-28d7-4bce-b8e0-648908a49062(org.apache.batik)" version="0" />
<module reference="b0f8641f-bd77-4421-8425-30d9088a82f7(org.apache.commons)" version="0" />
</dependencyVersions>
</solution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51772,7 +51772,7 @@
</node>
</node>
<node concept="37vLTw" id="6y3sThxjD2Y" role="3clFbw">
<ref role="3cqZAo" node="6y3sThxjD2N" resolve="b" />
<ref role="3cqZAo" node="6y3sThxjD2N" resolve="condition" />
</node>
</node>
</node>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3327,8 +3327,8 @@
<node concept="1Y3b0j" id="1laJE2$mTlK" role="YeSDq">
<property role="2bfB8j" value="true" />
<property role="373rjd" value="true" />
<ref role="1Y3XeK" to="18t6:~mxEventSource$mxIEventListener" resolve="mxIEventListener" />
<ref role="37wK5l" to="wyt6:~Object.&lt;init&gt;()" />
<ref role="1Y3XeK" to="18t6:~mxEventSource$mxIEventListener" resolve="mxEventSource.mxIEventListener" />
<ref role="37wK5l" to="wyt6:~Object.&lt;init&gt;()" resolve="Object" />
<node concept="3Tm1VV" id="1laJE2$mTlL" role="1B3o_S" />
<node concept="3clFb_" id="1laJE2$mTlM" role="jymVt">
<property role="TrG5h" value="invoke" />
Expand Down Expand Up @@ -3362,7 +3362,7 @@
</node>
</node>
<node concept="2AHcQZ" id="1laJE2$mTlZ" role="2AJF6D">
<ref role="2AI5Lk" to="wyt6:~Override" />
<ref role="2AI5Lk" to="wyt6:~Override" resolve="Override" />
</node>
</node>
</node>
Expand Down Expand Up @@ -13370,7 +13370,7 @@
</node>
</node>
<node concept="37vLTw" id="1mqidcvpvrC" role="3tpDZB">
<ref role="3cqZAo" node="1mqidcvpvqu" resolve="expectedSize" />
<ref role="3cqZAo" node="1mqidcvpvqu" resolve="expectedSize1" />
</node>
</node>
<node concept="3vlDli" id="1mqidcvsD6F" role="3cqZAp">
Expand Down Expand Up @@ -14619,7 +14619,7 @@
<node concept="2pJPED" id="1mqidcvQObB" role="28nt2d">
<ref role="2pJxaS" to="7nxb:24zrZPPz$8d" resolve="TextBoxContent" />
<node concept="2pJxcG" id="1mqidcvQOlZ" role="2pJxcM">
<ref role="2pJxcJ" to="7nxb:24zrZPPz$8l" resolve="value" />
<ref role="2pJxcJ" to="7nxb:24zrZPPz$8l" resolve="value1" />
<node concept="WxPPo" id="1mqidcvQOwD" role="28ntcv">
<node concept="Xl_RD" id="1mqidcvQOwC" role="WxPPp">
<property role="Xl_RC" value="text" />
Expand Down Expand Up @@ -24921,7 +24921,7 @@
</node>
<node concept="3vlDli" id="2PdRDsXEsQU" role="3cqZAp">
<node concept="37vLTw" id="2PdRDsXEHxj" role="3tpDZB">
<ref role="3cqZAo" node="2PdRDsXEHxe" resolve="d" />
<ref role="3cqZAo" node="2PdRDsXEHxe" resolve="originalBox1Bounds" />
</node>
<node concept="2OqwBi" id="2PdRDsXEtFu" role="3tpDZA">
<node concept="37vLTw" id="2PdRDsXEt4v" role="2Oq$k0">
Expand Down Expand Up @@ -24978,11 +24978,11 @@
</node>
<node concept="3vlDli" id="2PdRDsXEC26" role="3cqZAp">
<node concept="37vLTw" id="2PdRDsXEI7J" role="3tpDZB">
<ref role="3cqZAo" node="2PdRDsXEI7E" resolve="d" />
<ref role="3cqZAo" node="2PdRDsXEI7E" resolve="originalBox2Bounds" />
</node>
<node concept="2OqwBi" id="2PdRDsXEC2b" role="3tpDZA">
<node concept="37vLTw" id="2PdRDsXEC2c" role="2Oq$k0">
<ref role="3cqZAo" node="2PdRDsXEC1Y" resolve="box1" />
<ref role="3cqZAo" node="2PdRDsXEC1Y" resolve="box2" />
</node>
<node concept="AQDAd" id="2PdRDsXEC2d" role="2OqNvi">
<ref role="37wK5l" to="r3rm:1mqidcvpTcD" resolve="getSize" />
Expand Down Expand Up @@ -25035,11 +25035,11 @@
</node>
<node concept="3vlDli" id="2PdRDsXEDCc" role="3cqZAp">
<node concept="37vLTw" id="2PdRDsXEJ7U" role="3tpDZB">
<ref role="3cqZAo" node="2PdRDsXEJ7P" resolve="d" />
<ref role="3cqZAo" node="2PdRDsXEJ7P" resolve="originalBox3Bounds" />
</node>
<node concept="2OqwBi" id="2PdRDsXEDCh" role="3tpDZA">
<node concept="37vLTw" id="2PdRDsXEDCi" role="2Oq$k0">
<ref role="3cqZAo" node="2PdRDsXEDC4" resolve="box1" />
<ref role="3cqZAo" node="2PdRDsXEDC4" resolve="box3" />
</node>
<node concept="AQDAd" id="2PdRDsXEDCj" role="2OqNvi">
<ref role="37wK5l" to="r3rm:1mqidcvpTcD" resolve="getSize" />
Expand Down Expand Up @@ -25092,11 +25092,11 @@
</node>
<node concept="3vlDli" id="2PdRDsXEDXF" role="3cqZAp">
<node concept="37vLTw" id="2PdRDsXEJDH" role="3tpDZB">
<ref role="3cqZAo" node="2PdRDsXEJDC" resolve="d" />
<ref role="3cqZAo" node="2PdRDsXEJDC" resolve="originalBox4Bounds" />
</node>
<node concept="2OqwBi" id="2PdRDsXEDXK" role="3tpDZA">
<node concept="37vLTw" id="2PdRDsXEDXL" role="2Oq$k0">
<ref role="3cqZAo" node="2PdRDsXEDXz" resolve="box1" />
<ref role="3cqZAo" node="2PdRDsXEDXz" resolve="box4" />
</node>
<node concept="AQDAd" id="2PdRDsXEDXM" role="2OqNvi">
<ref role="37wK5l" to="r3rm:1mqidcvpTcD" resolve="getSize" />
Expand Down
40 changes: 40 additions & 0 deletions code/kotlin/solutions/MPS.Kotlin/MPS.Kotlin.msd
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<solution name="MPS.Kotlin" uuid="47198eff-d292-4dcd-85af-227f983426b5" moduleVersion="0" compileInMPS="true">
<models>
<modelRoot type="java_classes" contentPath="${mps_home}/plugins/mps-kotlin/lib">
<sourceRoot location="kotlin-builtins.jar" />
<sourceRoot location="kotlin-ide.jar" />
<sourceRoot location="kotlin-stdlib-1.7.0.jar" />
<sourceRoot location="kotlin-stdlib-common-1.7.0.jar" />
</modelRoot>
</models>
<facets>
<facet compile="ext" classes="provided" ext="no" type="java">
<classes generated="true" />
</facet>
</facets>
<stubModelEntries>
<stubModelEntry path="${mps_home}/plugins/mps-kotlin/lib/kotlin-builtins.jar" />
<stubModelEntry path="${mps_home}/plugins/mps-kotlin/lib/kotlin-ide.jar" />
<stubModelEntry path="${mps_home}/plugins/mps-kotlin/lib/kotlin-stdlib-1.7.0.jar" />
<stubModelEntry path="${mps_home}/plugins/mps-kotlin/lib/kotlin-stdlib-common-1.7.0.jar" />
</stubModelEntries>
<sourcePath />
<dependencies>
<dependency reexport="true">39983771-4e9b-401b-a1a9-1da6c777c843(MPS.ThirdParty)</dependency>
</dependencies>
<languageVersions>
<language slang="l:f3061a53-9226-4cc5-a443-f952ceaf5816:jetbrains.mps.baseLanguage" version="12" />
<language slang="l:f2801650-65d5-424e-bb1b-463a8781b786:jetbrains.mps.baseLanguage.javadoc" version="2" />
<language slang="l:ceab5195-25ea-4f22-9b92-103b95ca8c0c:jetbrains.mps.lang.core" version="2" />
<language slang="l:9ded098b-ad6a-4657-bfd9-48636cfe8bc3:jetbrains.mps.lang.traceable" version="0" />
</languageVersions>
<dependencyVersions>
<module reference="3f233e7f-b8a6-46d2-a57f-795d56775243(Annotations)" version="0" />
<module reference="6354ebe7-c22a-4a0f-ac54-50b52ab9b065(JDK)" version="0" />
<module reference="498d89d2-c2e9-11e2-ad49-6cf049e62fe5(MPS.IDEA)" version="0" />
<module reference="47198eff-d292-4dcd-85af-227f983426b5(MPS.Kotlin)" version="0" />
<module reference="39983771-4e9b-401b-a1a9-1da6c777c843(MPS.ThirdParty)" version="0" />
</dependencyVersions>
</solution>

32 changes: 32 additions & 0 deletions code/kotlin/solutions/kotlin.usage.test/kotlin.usage.test.msd
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<solution name="kotlin.usage.test" uuid="4105d28f-d96e-442e-9491-3eaac1128b0c" moduleVersion="0" compileInMPS="true">
<models>
<modelRoot type="default" contentPath="${module}">
<sourceRoot location="models" />
</modelRoot>
</models>
<facets>
<facet compile="mps" classes="mps" ext="no" type="java">
<classes generated="true" path="${module}/classes_gen" />
</facet>
</facets>
<sourcePath />
<dependencies>
<dependency reexport="false">6354ebe7-c22a-4a0f-ac54-50b52ab9b065(JDK)</dependency>
<dependency reexport="false">47198eff-d292-4dcd-85af-227f983426b5(MPS.Kotlin)</dependency>
</dependencies>
<languageVersions>
<language slang="l:f3061a53-9226-4cc5-a443-f952ceaf5816:jetbrains.mps.baseLanguage" version="12" />
<language slang="l:ceab5195-25ea-4f22-9b92-103b95ca8c0c:jetbrains.mps.lang.core" version="2" />
<language slang="l:9ded098b-ad6a-4657-bfd9-48636cfe8bc3:jetbrains.mps.lang.traceable" version="0" />
</languageVersions>
<dependencyVersions>
<module reference="3f233e7f-b8a6-46d2-a57f-795d56775243(Annotations)" version="0" />
<module reference="6354ebe7-c22a-4a0f-ac54-50b52ab9b065(JDK)" version="0" />
<module reference="498d89d2-c2e9-11e2-ad49-6cf049e62fe5(MPS.IDEA)" version="0" />
<module reference="47198eff-d292-4dcd-85af-227f983426b5(MPS.Kotlin)" version="0" />
<module reference="39983771-4e9b-401b-a1a9-1da6c777c843(MPS.ThirdParty)" version="0" />
<module reference="4105d28f-d96e-442e-9491-3eaac1128b0c(kotlin.usage.test)" version="0" />
</dependencyVersions>
</solution>

Loading

0 comments on commit df4e86c

Please sign in to comment.