Skip to content

Commit

Permalink
mpsutil.intentions: add a new style attribute to allow intentions in …
Browse files Browse the repository at this point in the history
…read-only-cells
  • Loading branch information
alexanderpann committed Nov 14, 2023
1 parent 1251c33 commit 1518db4
Show file tree
Hide file tree
Showing 11 changed files with 517 additions and 18 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ The project does _not_ follow Semantic Versioning and the changes are documented

- `@NotNull` annotations in the code are now checked at run time (the `javac2` compiler is used).

### Added

- mpsutil.intentions: a new style attribute `intentions-in-read-only-cell` is now available to allow intentions in read-only cells.

## October 2023

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12997,6 +12997,11 @@
</node>
</node>
</node>
<node concept="1SiIV0" id="5qf1oe_IoCJ" role="3bR37C">
<node concept="3bR9La" id="5qf1oe_IoCK" role="1SiIV1">
<ref role="3bR37D" node="54z9_KDR0Ol" resolve="com.mbeddr.mpsutil.intentions" />
</node>
</node>
</node>
</node>
<node concept="m$_wf" id="hCVXosGNJH" role="3989C9">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<dependency reexport="false">1ed103c3-3aa6-49b7-9c21-6765ee11f224(MPS.Editor)</dependency>
<dependency reexport="false">6354ebe7-c22a-4a0f-ac54-50b52ab9b065(JDK)</dependency>
<dependency reexport="true">498d89d2-c2e9-11e2-ad49-6cf049e62fe5(MPS.IDEA)</dependency>
<dependency reexport="false">b92f861d-0184-446d-b88b-6dcf0e070241(com.mbeddr.mpsutil.intentions)</dependency>
</dependencies>
<languageVersions>
<language slang="l:654422bf-e75f-44dc-936d-188890a746ce:de.slisson.mps.reflection" version="0" />
Expand All @@ -27,11 +28,13 @@
<language slang="l:760a0a8c-eabb-4521-8bfd-65db761a9ba3:jetbrains.mps.baseLanguage.logging" version="0" />
<language slang="l:a247e09e-2435-45ba-b8d2-07e93feba96a:jetbrains.mps.baseLanguage.tuples" version="0" />
<language slang="l:ceab5195-25ea-4f22-9b92-103b95ca8c0c:jetbrains.mps.lang.core" version="2" />
<language slang="l:18bc6592-03a6-4e29-a83a-7ff23bde13ba:jetbrains.mps.lang.editor" version="14" />
<language slang="l:446c26eb-2b7b-4bf0-9b35-f83fa582753e:jetbrains.mps.lang.modelapi" version="0" />
<language slang="l:28f9e497-3b42-4291-aeba-0a1039153ab1:jetbrains.mps.lang.plugin" version="5" />
<language slang="l:ef7bf5ac-d06c-4342-b11d-e42104eb9343:jetbrains.mps.lang.plugin.standalone" version="0" />
<language slang="l:3a13115c-633c-4c5c-bbcc-75c4219e9555:jetbrains.mps.lang.quotation" version="5" />
<language slang="l:7866978e-a0f0-4cc7-81bc-4d213d9375e1:jetbrains.mps.lang.smodel" version="19" />
<language slang="l:c72da2b9-7cce-4447-8389-f407dc1158b7:jetbrains.mps.lang.structure" version="9" />
<language slang="l:c7fb639f-be78-4307-89b0-b5959c3fa8c8:jetbrains.mps.lang.text" version="0" />
<language slang="l:9ded098b-ad6a-4657-bfd9-48636cfe8bc3:jetbrains.mps.lang.traceable" version="0" />
</languageVersions>
Expand All @@ -43,8 +46,10 @@
<module reference="498d89d2-c2e9-11e2-ad49-6cf049e62fe5(MPS.IDEA)" version="0" />
<module reference="8865b7a8-5271-43d3-884c-6fd1d9cfdd34(MPS.OpenAPI)" version="0" />
<module reference="742f6602-5a2f-4313-aa6e-ae1cd4ffdc61(MPS.Platform)" version="0" />
<module reference="b92f861d-0184-446d-b88b-6dcf0e070241(com.mbeddr.mpsutil.intentions)" version="0" />
<module reference="4bff7bbe-ce5f-432e-84bf-60809cb9987c(com.mbeddr.mpsutil.intentions.runtime)" version="0" />
<module reference="f0fff802-6d26-4d2e-b89d-391357265626(de.slisson.mps.hacks.editor)" version="0" />
<module reference="ceab5195-25ea-4f22-9b92-103b95ca8c0c(jetbrains.mps.lang.core)" version="0" />
</dependencyVersions>
</solution>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@
<child id="1164833692344" name="valuesFunction" index="PvTIR" />
</concept>
<concept id="1149850725784" name="jetbrains.mps.lang.editor.structure.CellModel_AttributedNodeCell" flags="ng" index="2SsqMj" />
<concept id="1186402211651" name="jetbrains.mps.lang.editor.structure.StyleSheet" flags="ng" index="V5hpn">
<child id="1186402402630" name="styles" index="V601i" />
</concept>
<concept id="1186414536763" name="jetbrains.mps.lang.editor.structure.BooleanStyleSheetItem" flags="ln" index="VOi$J">
<property id="1186414551515" name="flag" index="VOm3f" />
</concept>
<concept id="3982520150113085419" name="jetbrains.mps.lang.editor.structure.StyleAttributeDeclaration" flags="ig" index="3t5Usi">
<child id="3982520150113147643" name="defaultValue" index="3t49C2" />
<child id="3982520150113092206" name="valueType" index="3t5Oan" />
</concept>
<concept id="1219226236603" name="jetbrains.mps.lang.editor.structure.DrawBracketsStyleClassItem" flags="ln" index="3vyZuw" />
<concept id="1139848536355" name="jetbrains.mps.lang.editor.structure.CellModel_WithRole" flags="ng" index="1$h60E">
<reference id="1140103550593" name="relationDeclaration" index="1NtTu8" />
Expand Down Expand Up @@ -60,6 +67,7 @@
<concept id="1137021947720" name="jetbrains.mps.baseLanguage.structure.ConceptFunction" flags="in" index="2VMwT0">
<child id="1137022507850" name="body" index="2VODD2" />
</concept>
<concept id="1070534644030" name="jetbrains.mps.baseLanguage.structure.BooleanType" flags="in" index="10P_77" />
<concept id="1068498886296" name="jetbrains.mps.baseLanguage.structure.VariableReference" flags="nn" index="37vLTw">
<reference id="1068581517664" name="variableDeclaration" index="3cqZAo" />
</concept>
Expand All @@ -72,6 +80,7 @@
<concept id="1068580123136" name="jetbrains.mps.baseLanguage.structure.StatementList" flags="sn" stub="5293379017992965193" index="3clFbS">
<child id="1068581517665" name="statement" index="3cqZAp" />
</concept>
<concept id="1068580123137" name="jetbrains.mps.baseLanguage.structure.BooleanConstant" flags="nn" index="3clFbT" />
</language>
<language id="fd392034-7849-419d-9071-12563d152375" name="jetbrains.mps.baseLanguage.closures">
<concept id="1199569711397" name="jetbrains.mps.baseLanguage.closures.structure.ClosureLiteral" flags="nn" index="1bVj0M">
Expand Down Expand Up @@ -216,5 +225,13 @@
<node concept="2SsqMj" id="54z9_KDO5Tc" role="3EZMnx" />
</node>
</node>
<node concept="V5hpn" id="5qf1oe_$9jz">
<property role="TrG5h" value="IntentionStyles" />
<node concept="3t5Usi" id="5qf1oe_$9mw" role="V601i">
<property role="TrG5h" value="intentions-in-read-only-cell" />
<node concept="10P_77" id="5qf1oe_$9mA" role="3t5Oan" />
<node concept="3clFbT" id="5qf1oe_$9mE" role="3t49C2" />
</node>
</node>
</model>

Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
</generator>
</generators>
<sourcePath />
<dependencies>
<dependency reexport="false">b92f861d-0184-446d-b88b-6dcf0e070241(com.mbeddr.mpsutil.intentions)</dependency>
</dependencies>
<languageVersions>
<language slang="l:b92f861d-0184-446d-b88b-6dcf0e070241:com.mbeddr.mpsutil.intentions" version="0" />
<language slang="l:f3061a53-9226-4cc5-a443-f952ceaf5816:jetbrains.mps.baseLanguage" version="12" />
Expand Down Expand Up @@ -97,6 +100,7 @@
<module reference="6354ebe7-c22a-4a0f-ac54-50b52ab9b065(JDK)" version="0" />
<module reference="6ed54515-acc8-4d1e-a16c-9fd6cfe951ea(MPS.Core)" version="0" />
<module reference="8865b7a8-5271-43d3-884c-6fd1d9cfdd34(MPS.OpenAPI)" version="0" />
<module reference="b92f861d-0184-446d-b88b-6dcf0e070241(com.mbeddr.mpsutil.intentions)" version="0" />
<module reference="4972ae94-72e7-499b-8766-0d6acffdb4f2(com.mbeddr.mpsutil.intentions.sandboxlang)" 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" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,129 @@
<devkit ref="fbc25dd2-5da4-483a-8b19-70928e1b62d7(jetbrains.mps.devkit.general-purpose)" />
</languages>
<imports>
<import index="zddv" ref="r:1b71c6d7-41ff-44a2-a61c-39c2a9779c34(com.mbeddr.mpsutil.intentions.editor)" />
<import index="iikq" ref="r:7a511fd5-d829-4752-8daa-0ca5c0705ea8(com.mbeddr.mpsutil.intentions.sandboxlang.structure)" implicit="true" />
<import index="tpco" ref="r:00000000-0000-4000-0000-011c89590284(jetbrains.mps.lang.core.editor)" implicit="true" />
<import index="tpck" ref="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" implicit="true" />
</imports>
<registry>
<language id="18bc6592-03a6-4e29-a83a-7ff23bde13ba" name="jetbrains.mps.lang.editor">
<concept id="1071666914219" name="jetbrains.mps.lang.editor.structure.ConceptEditorDeclaration" flags="ig" index="24kQdi" />
<concept id="1140524381322" name="jetbrains.mps.lang.editor.structure.CellModel_ListWithRole" flags="ng" index="2czfm3">
<child id="1140524464360" name="cellLayout" index="2czzBx" />
</concept>
<concept id="1106270549637" name="jetbrains.mps.lang.editor.structure.CellLayout_Horizontal" flags="nn" index="2iRfu4" />
<concept id="1106270571710" name="jetbrains.mps.lang.editor.structure.CellLayout_Vertical" flags="nn" index="2iRkQZ" />
<concept id="1080736578640" name="jetbrains.mps.lang.editor.structure.BaseEditorComponent" flags="ig" index="2wURMF">
<child id="1080736633877" name="cellModel" index="2wV5jI" />
</concept>
<concept id="795210086017940429" name="jetbrains.mps.lang.editor.structure.ReadOnlyStyleClassItem" flags="lg" index="xShMh" />
<concept id="1078939183254" name="jetbrains.mps.lang.editor.structure.CellModel_Component" flags="sg" stub="3162947552742194261" index="PMmxH">
<reference id="1078939183255" name="editorComponent" index="PMmxG" />
</concept>
<concept id="1186414536763" name="jetbrains.mps.lang.editor.structure.BooleanStyleSheetItem" flags="ln" index="VOi$J">
<property id="1186414551515" name="flag" index="VOm3f" />
</concept>
<concept id="3982520150125052579" name="jetbrains.mps.lang.editor.structure.QueryFunction_AttributeStyleParameter" flags="ig" index="3sjG9q" />
<concept id="3982520150122341378" name="jetbrains.mps.lang.editor.structure.AttributeStyleClassItem" flags="lg" index="3tD6jV">
<reference id="3982520150122346707" name="attribute" index="3tD7wE" />
<child id="3982520150122341379" name="query" index="3tD6jU" />
</concept>
<concept id="1139848536355" name="jetbrains.mps.lang.editor.structure.CellModel_WithRole" flags="ng" index="1$h60E">
<reference id="1140103550593" name="relationDeclaration" index="1NtTu8" />
</concept>
<concept id="1073389446423" name="jetbrains.mps.lang.editor.structure.CellModel_Collection" flags="sn" stub="3013115976261988961" index="3EZMnI">
<child id="1106270802874" name="cellLayout" index="2iSdaV" />
<child id="1073389446424" name="childCellModel" index="3EZMnx" />
</concept>
<concept id="1073389577006" name="jetbrains.mps.lang.editor.structure.CellModel_Constant" flags="sn" stub="3610246225209162225" index="3F0ifn">
<property id="1073389577007" name="text" index="3F0ifm" />
</concept>
<concept id="1073389658414" name="jetbrains.mps.lang.editor.structure.CellModel_Property" flags="sg" stub="730538219796134133" index="3F0A7n" />
<concept id="1219418625346" name="jetbrains.mps.lang.editor.structure.IStyleContainer" flags="ng" index="3F0Thp">
<child id="1219418656006" name="styleItem" index="3F10Kt" />
</concept>
<concept id="1073390211982" name="jetbrains.mps.lang.editor.structure.CellModel_RefNodeList" flags="sg" stub="2794558372793454595" index="3F2HdR" />
<concept id="1166049232041" name="jetbrains.mps.lang.editor.structure.AbstractComponent" flags="ng" index="1XWOmA">
<reference id="1166049300910" name="conceptDeclaration" index="1XX52x" />
</concept>
</language>
<language id="f3061a53-9226-4cc5-a443-f952ceaf5816" name="jetbrains.mps.baseLanguage">
<concept id="1137021947720" name="jetbrains.mps.baseLanguage.structure.ConceptFunction" flags="in" index="2VMwT0">
<child id="1137022507850" name="body" index="2VODD2" />
</concept>
<concept id="1068580123155" name="jetbrains.mps.baseLanguage.structure.ExpressionStatement" flags="nn" index="3clFbF">
<child id="1068580123156" name="expression" index="3clFbG" />
</concept>
<concept id="1068580123136" name="jetbrains.mps.baseLanguage.structure.StatementList" flags="sn" stub="5293379017992965193" index="3clFbS">
<child id="1068581517665" name="statement" index="3cqZAp" />
</concept>
<concept id="1068580123137" name="jetbrains.mps.baseLanguage.structure.BooleanConstant" flags="nn" index="3clFbT">
<property id="1068580123138" name="value" index="3clFbU" />
</concept>
</language>
</registry>
<node concept="24kQdi" id="197NvysMAmf">
<ref role="1XX52x" to="iikq:197NvysM_3t" resolve="DemoNodeWithIntentions" />
<node concept="PMmxH" id="3pZvzolnXtY" role="2wV5jI">
<ref role="PMmxG" to="tpco:2wZex4PafBj" resolve="alias" />
</node>
</node>
<node concept="24kQdi" id="5qf1oe_GcsR">
<ref role="1XX52x" to="iikq:5qf1oe_GcsA" resolve="Root" />
<node concept="3EZMnI" id="5qf1oe_GcsW" role="2wV5jI">
<node concept="2iRkQZ" id="5qf1oe_GcsX" role="2iSdaV" />
<node concept="3EZMnI" id="5qf1oe_H6Ib" role="3EZMnx">
<node concept="2iRfu4" id="5qf1oe_H6Ic" role="2iSdaV" />
<node concept="3F0ifn" id="5qf1oe_GcsT" role="3EZMnx">
<property role="3F0ifm" value="root" />
</node>
<node concept="3F0A7n" id="5qf1oe_H6In" role="3EZMnx">
<ref role="1NtTu8" to="tpck:h0TrG11" resolve="name" />
</node>
</node>
<node concept="3F0ifn" id="5qf1oe_Gct2" role="3EZMnx" />
<node concept="3F2HdR" id="5qf1oe_Gct9" role="3EZMnx">
<ref role="1NtTu8" to="iikq:5qf1oe_GcsC" resolve="children" />
<node concept="2iRkQZ" id="5qf1oe_Gctb" role="2czzBx" />
</node>
</node>
</node>
<node concept="24kQdi" id="5qf1oe_GdNJ">
<ref role="1XX52x" to="iikq:5qf1oe_GcsE" resolve="Child" />
<node concept="3F0ifn" id="5qf1oe_GdNL" role="2wV5jI">
<property role="3F0ifm" value="child" />
</node>
</node>
<node concept="24kQdi" id="5qf1oe_GdOe">
<ref role="1XX52x" to="iikq:5qf1oe_GcsB" resolve="ReadOnlyChild" />
<node concept="3F0ifn" id="5qf1oe_GdOg" role="2wV5jI">
<property role="3F0ifm" value="read-only-child" />
<node concept="xShMh" id="5qf1oe_GdOm" role="3F10Kt">
<property role="VOm3f" value="true" />
</node>
</node>
</node>
<node concept="24kQdi" id="5qf1oe_GdOA">
<ref role="1XX52x" to="iikq:5qf1oe_GdOj" resolve="ReadOnlyChildAllowed" />
<node concept="3F0ifn" id="5qf1oe_GdOC" role="2wV5jI">
<property role="3F0ifm" value="read-only-child-allowed" />
<node concept="xShMh" id="5qf1oe_GdOF" role="3F10Kt">
<property role="VOm3f" value="true" />
</node>
<node concept="3tD6jV" id="5qf1oe_GeBz" role="3F10Kt">
<ref role="3tD7wE" to="zddv:5qf1oe_$9mw" resolve="intentions-in-read-only-cell" />
<node concept="3sjG9q" id="5qf1oe_GeB_" role="3tD6jU">
<node concept="3clFbS" id="5qf1oe_GeBB" role="2VODD2">
<node concept="3clFbF" id="5qf1oe_GeFz" role="3cqZAp">
<node concept="3clFbT" id="5qf1oe_GeFy" role="3clFbG">
<property role="3clFbU" value="true" />
</node>
</node>
</node>
</node>
</node>
</node>
</node>
</model>

Loading

0 comments on commit 1518db4

Please sign in to comment.