Skip to content

Commit

Permalink
Merge pull request #920 from JetBrains/feature/constant_multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderpann authored Aug 12, 2024
2 parents 9dcff1c + bcc7664 commit 58fe1cb
Show file tree
Hide file tree
Showing 12 changed files with 911 additions and 32 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ The format is *loosely* based on [Keep a Changelog](https://keepachangelog.com/e

## August 2024

### Added

- *de.slisson.mps.editor.multiline*: A new cell *constant multi-line* can be used to create dynamic read-only text that spans multiple lines.

### Fixed

- *com.mbeddr.mpsutil.projectview.runtime*: Fixed several NPEs. See: [#903,](https://github.com/JetBrains/MPS-extensions/issues/903) [#904]((https://github.com/JetBrains/MPS-extensions/issues/904) , [#901](https://github.com/JetBrains/MPS-extensions/issues/901)
- *de.itemis.mps.editor.diagram*: Some issues related to ELK styles and custom IDs were fixed.

### Changed

- *com.mbeddr.mpsutil.projectview.runtime*: Fixed several NPEs. See: [#903,](https://github.com/JetBrains/MPS-extensions/issues/903) [#904]((https://github.com/JetBrains/MPS-extensions/issues/904) , [#901](https://github.com/JetBrains/MPS-extensions/issues/901)
- *de.slisson.mps.reflection*: The language uses the class ReflectionUtil directly and doesn't copy ReflectionUtil_copy in the model anymore.

## July 2024

Expand All @@ -33,6 +38,7 @@ The format is *loosely* based on [Keep a Changelog](https://keepachangelog.com/e
### Fixed

- *de.itemis.mps.editor.diagram.runtime*: Diagrams can now be used in an headless environment (e.g. for rendering documentation).
- *de.slisson.mps.editor.multiline.runtime*: A bug was fixed where the multiline cell got a wrong background color set.
- *de.itemis.mps.editor.diagram.runtime*: The dependency to *de.q60.mps.collections.libs* was removed.
- *de.itemis.mps.editor.diagram*: Various improvements to diagrams were made. (see: [PR #866](https://github.com/JetBrains/MPS-extensions/pull/866) )

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,16 @@
</node>
</node>
</node>
<node concept="1SiIV0" id="1TZykZLaTdO" role="3bR37C">
<node concept="3bR9La" id="1TZykZLaTdP" role="1SiIV1">
<ref role="3bR37D" to="ffeo:7Kfy9QB6L4X" resolve="jetbrains.mps.lang.editor" />
</node>
</node>
<node concept="1SiIV0" id="1TZykZLaTdQ" role="3bR37C">
<node concept="3bR9La" id="1TZykZLaTdR" role="1SiIV1">
<ref role="3bR37D" to="ffeo:7Kfy9QB6KYb" resolve="jetbrains.mps.baseLanguage" />
</node>
</node>
</node>
<node concept="1E1JtD" id="5nOdiEvyVh5" role="2G$12L">
<property role="BnDLt" value="true" />
Expand Down Expand Up @@ -19850,6 +19860,11 @@
<ref role="3bR37D" to="ffeo:7Kfy9QB6KYb" resolve="jetbrains.mps.baseLanguage" />
</node>
</node>
<node concept="1SiIV0" id="1TZykZLaU4v" role="3bR37C">
<node concept="3bR9La" id="1TZykZLaU4w" role="1SiIV1">
<ref role="3bR37D" to="ffeo:7Kfy9QB6L4X" resolve="jetbrains.mps.lang.editor" />
</node>
</node>
</node>
<node concept="1E1JtA" id="7qi8mU1OzdF" role="2G$12L">
<property role="BnDLt" value="true" />
Expand Down
10 changes: 10 additions & 0 deletions code/multiline/languages/demolang/demolang.mpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<sourcePath />
<dependencies>
<dependency reexport="false">f3061a53-9226-4cc5-a443-f952ceaf5816(jetbrains.mps.baseLanguage)</dependency>
<dependency reexport="false">18bc6592-03a6-4e29-a83a-7ff23bde13ba(jetbrains.mps.lang.editor)</dependency>
</dependencies>
<languageVersions>
<language slang="l:31c91def-a131-41a1-9018-102874f49a12:de.slisson.mps.editor.multiline" version="0" />
Expand Down Expand Up @@ -54,10 +55,19 @@
<module reference="8865b7a8-5271-43d3-884c-6fd1d9cfdd34(MPS.OpenAPI)" version="0" />
<module reference="26a9201d-e70b-4755-acd6-40baf7a63b3a(de.slisson.mps.editor.multiline.demolang)" version="0" />
<module reference="f3061a53-9226-4cc5-a443-f952ceaf5816(jetbrains.mps.baseLanguage)" version="0" />
<module reference="443f4c36-fcf5-4eb6-9500-8d06ed259e3e(jetbrains.mps.baseLanguage.classifiers)" version="0" />
<module reference="fd392034-7849-419d-9071-12563d152375(jetbrains.mps.baseLanguage.closures)" version="0" />
<module reference="83888646-71ce-4f1c-9c53-c54016f6ad4f(jetbrains.mps.baseLanguage.collections)" version="0" />
<module reference="e39e4a59-8cb6-498e-860e-8fa8361c0d90(jetbrains.mps.baseLanguage.scopes)" version="0" />
<module reference="2d3c70e9-aab2-4870-8d8d-6036800e4103(jetbrains.mps.kernel)" version="0" />
<module reference="d936855b-48da-4812-a8a0-2bfddd633ac5(jetbrains.mps.lang.behavior.api)" version="0" />
<module reference="ceab5195-25ea-4f22-9b92-103b95ca8c0c(jetbrains.mps.lang.core)" version="0" />
<module reference="a9e4c532-c5f5-4bb7-99ef-42abb73bbb70(jetbrains.mps.lang.descriptor.aspects)" version="0" />
<module reference="18bc6592-03a6-4e29-a83a-7ff23bde13ba(jetbrains.mps.lang.editor)" version="0" />
<module reference="446c26eb-2b7b-4bf0-9b35-f83fa582753e(jetbrains.mps.lang.modelapi)" version="0" />
<module reference="d7eb0a2a-bd50-4576-beae-e4a89db35f20(jetbrains.mps.lang.scopes.runtime)" version="0" />
<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" />
</dependencyVersions>
<extendedLanguages />
Expand Down
22 changes: 22 additions & 0 deletions code/multiline/languages/demolang/languageModels/editor.mps
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</languages>
<imports>
<import index="kyaz" ref="r:711fe6f5-9341-4fad-8566-f7d70e151a24(de.slisson.mps.editor.multiline.demolang.structure)" />
<import index="tpc5" ref="r:00000000-0000-4000-0000-011c89590299(jetbrains.mps.lang.editor.editor)" />
</imports>
<registry>
<language id="18bc6592-03a6-4e29-a83a-7ff23bde13ba" name="jetbrains.mps.lang.editor">
Expand Down Expand Up @@ -101,6 +102,9 @@
<concept id="1137021947720" name="jetbrains.mps.baseLanguage.structure.ConceptFunction" flags="in" index="2VMwT0">
<child id="1137022507850" name="body" index="2VODD2" />
</concept>
<concept id="1070475926800" name="jetbrains.mps.baseLanguage.structure.StringLiteral" flags="nn" index="Xl_RD">
<property id="1070475926801" name="value" index="Xl_RC" />
</concept>
<concept id="1068498886294" name="jetbrains.mps.baseLanguage.structure.AssignmentExpression" flags="nn" index="37vLTI" />
<concept id="1068580123155" name="jetbrains.mps.baseLanguage.structure.ExpressionStatement" flags="nn" index="3clFbF">
<child id="1068580123156" name="expression" index="3clFbG" />
Expand All @@ -121,6 +125,10 @@
</language>
<language id="31c91def-a131-41a1-9018-102874f49a12" name="de.slisson.mps.editor.multiline">
<concept id="8006371471054135775" name="de.slisson.mps.editor.multiline.structure.CellModel_Multiline" flags="sg" stub="8664183491941389655" index="2v7bAL" />
<concept id="9175692738071695071" name="de.slisson.mps.editor.multiline.structure.QueryFunction_Content" flags="ig" index="1jGTkL" />
<concept id="2197626119621156059" name="de.slisson.mps.editor.multiline.structure.CellModel_Multiline_Constant" flags="ng" index="3Jn1mk">
<child id="9175692738071697533" name="contentProvider" index="1jGSej" />
</concept>
</language>
</registry>
<node concept="24kQdi" id="6Wsm6VK0frj">
Expand Down Expand Up @@ -353,5 +361,19 @@
</node>
</node>
</node>
<node concept="24kQdi" id="1TZykZL9boR">
<ref role="1XX52x" to="kyaz:1TZykZL9boQ" resolve="Constant" />
<node concept="3Jn1mk" id="1TZykZLanea" role="2wV5jI">
<node concept="1jGTkL" id="1TZykZLaneb" role="1jGSej">
<node concept="3clFbS" id="1TZykZLanec" role="2VODD2">
<node concept="3clFbF" id="1TZykZLaotd" role="3cqZAp">
<node concept="Xl_RD" id="1TZykZLaotc" role="3clFbG">
<property role="Xl_RC" value="Multi-line\ntext" />
</node>
</node>
</node>
</node>
</node>
</node>
</model>

Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,11 @@
<ref role="AX2Wp" to="tpck:fKAOsGN" resolve="string" />
</node>
</node>
<node concept="1TIwiD" id="1TZykZL9boQ">
<property role="EcuMT" value="2197626119621228086" />
<property role="TrG5h" value="Constant" />
<property role="19KtqR" value="true" />
<ref role="1TJDcQ" to="tpck:gw2VY9q" />
</node>
</model>

Loading

0 comments on commit 58fe1cb

Please sign in to comment.