Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tables: initial support for row actions #700

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The project does _not_ follow Semantic Versioning and the changes are documented

- mpsutil.intentions: a new style attribute `intentions-in-read-only-cell` is now available to allow intentions in read-only cells.
- com.mbeddr.mpsutil.editor.querylist: Default editor cells now support style attributes.
- de.slisson.mps.tables: tables now support a new property `row UI actions (experimental)`: This property adds actions to the MPS toolbar to add a new row above/below the current row or to delete the current row. These actions only work for simple tables that are based on rows (default: *false*).

## October 2023

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@
<property id="1397920687864864274" name="text" index="2rfbtB" />
</concept>
<concept id="1397920687864683158" name="de.slisson.mps.tables.structure.Table" flags="ng" index="2rfBfz">
<property id="8824145157122921765" name="rowUIActions" index="3qJzLx" />
<child id="1397920687864865354" name="cells" index="2rf8GZ" />
<child id="6097863121587726798" name="gridPostprocessor" index="3nFLZX" />
</concept>
Expand Down Expand Up @@ -976,6 +977,7 @@
<property role="3GE5qa" value="StaticRow" />
<ref role="1XX52x" to="nnej:1dAqnm8oBxc" resolve="RequirementsCollection" />
<node concept="2rfBfz" id="1dAqnm8o6CS" role="2wV5jI">
<property role="3qJzLx" value="true" />
<node concept="2reSaE" id="3vizsF8spxX" role="2rf8GZ">
<property role="1YXhso" value="Press enter to add the first requirement" />
<ref role="2reCK$" to="nnej:1dAqnm8oYDx" resolve="requirements" />
Expand Down Expand Up @@ -1034,6 +1036,7 @@
</node>
</node>
<node concept="2rfBfz" id="1dAqnm8qrOS" role="3EZMnx">
<property role="3qJzLx" value="true" />
<node concept="2reSaE" id="1dAqnm8I7ag" role="2rf8GZ">
<ref role="2reCK$" to="nnej:1dAqnm8qrMU" resolve="tests" />
<node concept="1g0IQG" id="1ERZrWiwuGX" role="1geGt4" />
Expand Down Expand Up @@ -2580,6 +2583,7 @@
<property role="3GE5qa" value="StateMachine2" />
<ref role="1XX52x" to="nnej:2M7NXgi3amF" resolve="StateMachine2" />
<node concept="2rfBfz" id="2M7NXgi3aZy" role="2wV5jI">
<property role="3qJzLx" value="true" />
<node concept="2reCLu" id="ovdreqayNp" role="2rf8GZ">
<node concept="2reCLk" id="ovdreqaBpu" role="2reCL6">
<node concept="2r731s" id="2M7NXgi3aZB" role="2reCL6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2277,6 +2277,33 @@
</node>
</node>
</node>
<node concept="3clFbF" id="7DPEkiwN2f5" role="3cqZAp">
<node concept="2OqwBi" id="7DPEkiwN2f6" role="3clFbG">
<node concept="37vLTw" id="7DPEkiwN2f7" role="2Oq$k0">
<ref role="3cqZAo" node="1dAqnm8$DVo" resolve="editorCell" />
</node>
<node concept="liA8E" id="7DPEkiwN2f8" role="2OqNvi">
<ref role="37wK5l" to="hm5v:7DPEkiwMAV0" resolve="toggleRowUIActions" />
<node concept="3clFbT" id="7DPEkiwN2f9" role="37wK5m">
<property role="3clFbU" value="true" />
</node>
</node>
</node>
<node concept="1W57fq" id="7DPEkiwN2fa" role="lGtFl">
<node concept="3IZrLx" id="7DPEkiwN2fb" role="3IZSJc">
<node concept="3clFbS" id="7DPEkiwN2fc" role="2VODD2">
<node concept="3clFbF" id="7DPEkiwN2fd" role="3cqZAp">
<node concept="2OqwBi" id="7DPEkiwN2fe" role="3clFbG">
<node concept="30H73N" id="7DPEkiwN2ff" role="2Oq$k0" />
<node concept="3TrcHB" id="7DPEkiwN2fg" role="2OqNvi">
<ref role="3TsBF5" to="bnk3:7DPEkiwMTk_" resolve="rowUIActions" />
</node>
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="3clFbH" id="m_yL2MJokU" role="3cqZAp" />
<node concept="3clFbF" id="63X$F8P1Lj6" role="3cqZAp">
<node concept="2OqwBi" id="63X$F8P1LMw" role="3clFbG">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,22 @@
</node>
<node concept="2iRfu4" id="m_yL2MI1Ty" role="2iSdaV" />
</node>
<node concept="3EZMnI" id="7DPEkiwMUol" role="3EZMnx">
<node concept="VPM3Z" id="7DPEkiwMUom" role="3F10Kt">
<property role="VOm3f" value="false" />
</node>
<node concept="VPXOz" id="7DPEkiwMUon" role="3F10Kt">
<property role="VOm3f" value="true" />
</node>
<node concept="3F0ifn" id="7DPEkiwMUoo" role="3EZMnx">
<property role="3F0ifm" value="row UI actions (experimental)" />
<ref role="1k5W1q" to="tpc5:hF4H1c8" resolve="property" />
</node>
<node concept="3F0A7n" id="7DPEkiwMUop" role="3EZMnx">
<ref role="1NtTu8" to="bnk3:7DPEkiwMTk_" resolve="rowUIActions" />
</node>
<node concept="2iRfu4" id="7DPEkiwMUoq" role="2iSdaV" />
</node>
<node concept="VPM3Z" id="hEU$PEH" role="3F10Kt">
<property role="VOm3f" value="false" />
</node>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
<property role="TrG5h" value="disableRightRowEndCells" />
<ref role="AX2Wp" to="tpck:fKAQMTB" resolve="boolean" />
</node>
<node concept="1TJgyi" id="7DPEkiwMTk_" role="1TKVEl">
<property role="IQ2nx" value="8824145157122921765" />
<property role="TrG5h" value="rowUIActions" />
<ref role="AX2Wp" to="tpck:fKAQMTB" resolve="boolean" />
</node>
<node concept="PrWs8" id="5X6T0_NE_dS" role="PzmwI">
<ref role="PrY4T" node="4UkcdCu_Hbr" resolve="IStylable" />
</node>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<language slang="l:83888646-71ce-4f1c-9c53-c54016f6ad4f:jetbrains.mps.baseLanguage.collections" version="1" />
<language slang="l:5dc5fc0d-37ef-4782-8192-8b5ce1f69f80:jetbrains.mps.baseLanguage.extensionMethods" version="0" />
<language slang="l:f2801650-65d5-424e-bb1b-463a8781b786:jetbrains.mps.baseLanguage.javadoc" version="2" />
<language slang="l:c7d5b9dd-a05f-4be2-bc73-f2e16994cc67:jetbrains.mps.baseLanguage.lightweightdsl" version="1" />
<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:f61473f9-130f-42f6-b98d-6c438812c2f6:jetbrains.mps.baseLanguage.unitTest" version="1" />
Expand Down
Loading
Loading