Skip to content

Commit

Permalink
diagram: implement the option to set the grid style
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderpann committed Sep 17, 2024
1 parent 593c414 commit 12bdc3a
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
</concept>
<concept id="6554619382999975769" name="de.itemis.mps.editor.diagram.structure.Content_GenericElementQuery_OuterNode" flags="ng" index="23r2z0" />
<concept id="1110129820007229393" name="de.itemis.mps.editor.diagram.structure.CellModel_Diagram" flags="ng" index="27vDVx">
<property id="1259410080007702445" name="gridStyle" index="2s7plA" />
<child id="8433227566816393050" name="layoutAlgorithm" index="35U2g" />
<child id="1742468285817538342" name="disableNodeEditing" index="2gDVEa" />
<child id="53713348769907228" name="autoLayoutOnChange" index="2hB_ot" />
Expand Down Expand Up @@ -490,6 +491,7 @@
<property role="3GE5qa" value="diagram" />
<ref role="1XX52x" to="g93z:4_qW8fWLMYX" resolve="EntityDiagram" />
<node concept="27vDVx" id="4_qW8fWLOPi" role="2wV5jI">
<property role="2s7plA" value="15UkGIdpWfA/GRID_STYLE_LINE" />
<node concept="ahg9e" id="30bR1EZsvUl" role="aCds2">
<node concept="238au4" id="30bR1EZsvUn" role="23bJyd">
<node concept="3EZMnI" id="30bR1EZs_2z" role="2wV5jI">
Expand Down Expand Up @@ -896,8 +898,8 @@
<node concept="1cFabM" id="6nZQGuFTYEq" role="3ehQaW">
<node concept="3clFbS" id="6nZQGuFTYEr" role="2VODD2">
<node concept="3clFbF" id="6nZQGuFTZ5W" role="3cqZAp">
<node concept="3cmrfG" id="6nZQGuFTZBR" role="3clFbG">
<property role="3cmrfH" value="5" />
<node concept="3cmrfG" id="15UkGIdCPvn" role="3clFbG">
<property role="3cmrfH" value="20" />
</node>
</node>
</node>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@
<import index="4nm9" ref="498d89d2-c2e9-11e2-ad49-6cf049e62fe5/java:com.intellij.openapi.project(MPS.IDEA/)" />
<import index="1njx" ref="1144260c-e9a5-49a2-9add-39a1a1a7077e/java:com.mxgraph.view(de.itemis.mps.editor.diagram.runtime/)" />
<import index="tpce" ref="r:00000000-0000-4000-0000-011c89590292(jetbrains.mps.lang.structure.structure)" />
<import index="p8va" ref="1144260c-e9a5-49a2-9add-39a1a1a7077e/java:com.mxgraph.swing(de.itemis.mps.editor.diagram.runtime/)" />
<import index="wyt6" ref="6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)" implicit="true" />
<import index="t6h5" ref="6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang.reflect(JDK/)" implicit="true" />
</imports>
<registry>
<language id="a247e09e-2435-45ba-b8d2-07e93feba96a" name="jetbrains.mps.baseLanguage.tuples">
Expand Down Expand Up @@ -101,6 +103,9 @@
<concept id="1215695189714" name="jetbrains.mps.baseLanguage.structure.PlusAssignmentExpression" flags="nn" index="d57v9" />
<concept id="4836112446988635817" name="jetbrains.mps.baseLanguage.structure.UndefinedType" flags="in" index="2jxLKc" />
<concept id="1202948039474" name="jetbrains.mps.baseLanguage.structure.InstanceMethodCallOperation" flags="nn" index="liA8E" />
<concept id="8118189177080264853" name="jetbrains.mps.baseLanguage.structure.AlternativeType" flags="ig" index="nSUau">
<child id="8118189177080264854" name="alternative" index="nSUat" />
</concept>
<concept id="1465982738277781862" name="jetbrains.mps.baseLanguage.structure.PlaceholderMember" flags="nn" index="2tJIrI" />
<concept id="5279705229678483897" name="jetbrains.mps.baseLanguage.structure.FloatingPointFloatConstant" flags="nn" index="2$xPTn">
<property id="5279705229678483899" name="value" index="2$xPTl" />
Expand Down Expand Up @@ -140,6 +145,7 @@
<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="4952749571008284462" name="jetbrains.mps.baseLanguage.structure.CatchVariable" flags="ng" index="XOnhg" />
<concept id="1182160077978" name="jetbrains.mps.baseLanguage.structure.AnonymousClassCreator" flags="nn" index="YeOm9">
<child id="1182160096073" name="cls" index="YeSDq" />
</concept>
Expand Down Expand Up @@ -265,6 +271,10 @@
<child id="1081773367579" name="rightExpression" index="3uHU7w" />
<child id="1081773367580" name="leftExpression" index="3uHU7B" />
</concept>
<concept id="3093926081414150598" name="jetbrains.mps.baseLanguage.structure.MultipleCatchClause" flags="ng" index="3uVAMA">
<child id="8276990574895933173" name="catchBody" index="1zc67A" />
<child id="8276990574895933172" name="throwable" index="1zc67B" />
</concept>
<concept id="1073239437375" name="jetbrains.mps.baseLanguage.structure.NotEqualsExpression" flags="nn" index="3y3z36" />
<concept id="1178549954367" name="jetbrains.mps.baseLanguage.structure.IVisible" flags="ng" index="1B3ioH">
<child id="1178549979242" name="visibility" index="1B3o_S" />
Expand All @@ -275,6 +285,10 @@
<concept id="1144230876926" name="jetbrains.mps.baseLanguage.structure.AbstractForStatement" flags="nn" index="1DupvO">
<child id="1144230900587" name="variable" index="1Duv9x" />
</concept>
<concept id="5351203823916750322" name="jetbrains.mps.baseLanguage.structure.TryUniversalStatement" flags="nn" index="3J1_TO">
<child id="8276990574886367510" name="catchClause" index="1zxBo5" />
<child id="8276990574886367508" name="body" index="1zxBo7" />
</concept>
<concept id="1163668896201" name="jetbrains.mps.baseLanguage.structure.TernaryOperatorExpression" flags="nn" index="3K4zz7">
<child id="1163668914799" name="condition" index="3K4Cdx" />
<child id="1163668922816" name="ifTrue" index="3K4E3e" />
Expand Down Expand Up @@ -6879,6 +6893,79 @@
</node>
</node>
</node>
<node concept="2tJIrI" id="15UkGIdq$PJ" role="jymVt" />
<node concept="2tJIrI" id="15UkGIdqBEP" role="jymVt" />
<node concept="3clFb_" id="15UkGIdqECW" role="jymVt">
<property role="TrG5h" value="getGridStyle" />
<node concept="3Tm1VV" id="15UkGIdqECX" role="1B3o_S" />
<node concept="10Oyi0" id="15UkGIdqECY" role="3clF45" />
<node concept="2AHcQZ" id="15UkGIdqED2" role="2AJF6D">
<ref role="2AI5Lk" to="wyt6:~Override" resolve="Override" />
</node>
<node concept="3clFbS" id="15UkGIdqED4" role="3clF47">
<node concept="3J1_TO" id="15UkGIds5EJ" role="3cqZAp">
<node concept="3uVAMA" id="15UkGIds8x4" role="1zxBo5">
<node concept="XOnhg" id="15UkGIds8x5" role="1zc67B">
<property role="TrG5h" value="ex" />
<node concept="nSUau" id="15UkGIds8x6" role="1tU5fm">
<node concept="3uibUv" id="15UkGIdsbwE" role="nSUat">
<ref role="3uigEE" to="wyt6:~Exception" resolve="Exception" />
</node>
</node>
</node>
<node concept="3clFbS" id="15UkGIds8x7" role="1zc67A">
<node concept="3cpWs6" id="15UkGIdsjrt" role="3cqZAp">
<node concept="3cmrfG" id="15UkGIdsmUU" role="3cqZAk">
<property role="3cmrfH" value="0" />
</node>
</node>
</node>
</node>
<node concept="3clFbS" id="15UkGIds5EK" role="1zxBo7">
<node concept="3cpWs6" id="15UkGIdsAaD" role="3cqZAp">
<node concept="2OqwBi" id="15UkGIdrRQx" role="3cqZAk">
<node concept="2OqwBi" id="15UkGIdr4P4" role="2Oq$k0">
<node concept="3VsKOn" id="15UkGIdr33i" role="2Oq$k0">
<ref role="3VsUkX" to="p8va:~mxGraphComponent" resolve="mxGraphComponent" />
</node>
<node concept="liA8E" id="15UkGIdr9Ht" role="2OqNvi">
<ref role="37wK5l" to="wyt6:~Class.getDeclaredField(java.lang.String)" resolve="getDeclaredField" />
<node concept="Xl_RD" id="15UkGIdrtOu" role="37wK5m">
<property role="Xl_RC" value="GRID_STYLE_DOT" />
<node concept="17Uvod" id="15UkGIdr_hb" role="lGtFl">
<property role="2qtEX9" value="value" />
<property role="P4ACc" value="f3061a53-9226-4cc5-a443-f952ceaf5816/1070475926800/1070475926801" />
<node concept="3zFVjK" id="15UkGIdr_hc" role="3zH0cK">
<node concept="3clFbS" id="15UkGIdr_hd" role="2VODD2">
<node concept="3clFbF" id="15UkGIdrErK" role="3cqZAp">
<node concept="2OqwBi" id="15UkGIdrLBB" role="3clFbG">
<node concept="2OqwBi" id="15UkGIdrGlI" role="2Oq$k0">
<node concept="30H73N" id="15UkGIdrErJ" role="2Oq$k0" />
<node concept="3TrcHB" id="15UkGIdrJOx" role="2OqNvi">
<ref role="3TsBF5" to="2qld:15UkGIdpWuH" resolve="gridStyle" />
</node>
</node>
<node concept="liA8E" id="15UkGIdrODa" role="2OqNvi">
<ref role="37wK5l" to="c17a:~SEnumerationLiteral.getName()" resolve="getName" />
</node>
</node>
</node>
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="liA8E" id="15UkGIdrV4z" role="2OqNvi">
<ref role="37wK5l" to="t6h5:~Field.getInt(java.lang.Object)" resolve="getInt" />
<node concept="10Nm6u" id="15UkGIdrZj0" role="37wK5m" />
</node>
</node>
</node>
</node>
</node>
</node>
</node>
<node concept="2tJIrI" id="2WP$sH$LMTP" role="jymVt" />
<node concept="3clFb_" id="2WP$sH$LDMx" role="jymVt">
<property role="TrG5h" value="getGridColor" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,19 @@
<property role="VOm3f" value="true" />
</node>
</node>
<node concept="3EZMnI" id="15UkGIdpXuW" role="3EZMnx">
<node concept="2iRfu4" id="15UkGIdpXuX" role="2iSdaV" />
<node concept="3F0ifn" id="15UkGIdpXuY" role="3EZMnx">
<property role="3F0ifm" value="grid style" />
</node>
<node concept="3F0A7n" id="15UkGIdpXQT" role="3EZMnx">
<ref role="1NtTu8" to="2qld:15UkGIdpWuH" resolve="gridStyle" />
</node>
<node concept="VPM3Z" id="15UkGIdpXv0" role="3F10Kt" />
<node concept="VPXOz" id="15UkGIdpXv1" role="3F10Kt">
<property role="VOm3f" value="true" />
</node>
</node>
<node concept="3EZMnI" id="4sEIQIBw07n" role="3EZMnx">
<node concept="2iRfu4" id="4sEIQIBw07o" role="2iSdaV" />
<node concept="3F0ifn" id="4sEIQIBw07p" role="3EZMnx">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@
<property role="TrG5h" value="connectBoxesWithoutDummyPort" />
<ref role="AX2Wp" to="tpck:fKAQMTB" resolve="boolean" />
</node>
<node concept="1TJgyi" id="15UkGIdpWuH" role="1TKVEl">
<property role="IQ2nx" value="1259410080007702445" />
<property role="TrG5h" value="gridStyle" />
<ref role="AX2Wp" node="15UkGIdpWax" resolve="GridStyle" />
</node>
<node concept="1TJgyj" id="6actlYi6UMa" role="1TKVEi">
<property role="20lmBu" value="fLJjDmT/aggregation" />
<property role="20kJfa" value="diagramID" />
Expand Down Expand Up @@ -5095,5 +5100,30 @@
<property role="EcuMT" value="6237710625716701263" />
<ref role="1TJDcQ" to="tpee:gyVMwX8" resolve="ConceptFunction" />
</node>
<node concept="25R3W" id="15UkGIdpWax">
<property role="3F6X1D" value="1259410080007701153" />
<property role="TrG5h" value="GridStyle" />
<ref role="1H5jkz" node="15UkGIdpWay" resolve="GRID_STYLE_DOT" />
<node concept="25R33" id="15UkGIdpWay" role="25R1y">
<property role="3tVfz5" value="1259410080007701154" />
<property role="TrG5h" value="GRID_STYLE_DOT" />
<property role="1L1pqM" value="dot" />
</node>
<node concept="25R33" id="15UkGIdpWe4" role="25R1y">
<property role="3tVfz5" value="1259410080007701380" />
<property role="TrG5h" value="GRID_STYLE_CROSS" />
<property role="1L1pqM" value="cross" />
</node>
<node concept="25R33" id="15UkGIdpWfA" role="25R1y">
<property role="3tVfz5" value="1259410080007701478" />
<property role="TrG5h" value="GRID_STYLE_LINE" />
<property role="1L1pqM" value="line" />
</node>
<node concept="25R33" id="15UkGIdpWiD" role="25R1y">
<property role="3tVfz5" value="1259410080007701673" />
<property role="TrG5h" value="GRID_STYLE_DASHED" />
<property role="1L1pqM" value="dashed" />
</node>
</node>
</model>

Original file line number Diff line number Diff line change
Expand Up @@ -28157,6 +28157,19 @@
</node>
</node>
</node>
<node concept="3clFbF" id="15UkGIdtg9o" role="3cqZAp">
<node concept="1rXfSq" id="15UkGIdtg9m" role="3clFbG">
<ref role="37wK5l" to="p8va:~mxGraphComponent.setGridStyle(int)" resolve="setGridStyle" />
<node concept="2OqwBi" id="15UkGIdtF$j" role="37wK5m">
<node concept="37vLTw" id="15UkGIdtCVm" role="2Oq$k0">
<ref role="3cqZAo" node="2WP$sH$MRkU" resolve="diagramAccessor" />
</node>
<node concept="liA8E" id="15UkGIdtHb9" role="2OqNvi">
<ref role="37wK5l" to="nkm5:15UkGIdqaGq" resolve="getGridStyle" />
</node>
</node>
</node>
</node>
<node concept="3clFbF" id="6LXVPPFqx2H" role="3cqZAp">
<node concept="2ShNRf" id="6LXVPPFqx2D" role="3clFbG">
<node concept="1pGfFk" id="6LXVPPFqy5N" role="2ShVmc">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<import index="1njx" ref="1144260c-e9a5-49a2-9add-39a1a1a7077e/java:com.mxgraph.view(de.itemis.mps.editor.diagram.runtime/)" />
<import index="xggr" ref="r:12584d60-2d80-4ca9-9c6e-b79d499da0cf(de.itemis.mps.editor.celllayout.layout)" />
<import index="5ueo" ref="1ed103c3-3aa6-49b7-9c21-6765ee11f224/java:jetbrains.mps.editor.runtime.style(MPS.Editor/)" />
<import index="p8va" ref="1144260c-e9a5-49a2-9add-39a1a1a7077e/java:com.mxgraph.swing(de.itemis.mps.editor.diagram.runtime/)" />
<import index="lui2" ref="8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.module(MPS.OpenAPI/)" implicit="true" />
<import index="lwvz" ref="1ed103c3-3aa6-49b7-9c21-6765ee11f224/java:jetbrains.mps.openapi.editor.selection(MPS.Editor/)" implicit="true" />
<import index="22ra" ref="1ed103c3-3aa6-49b7-9c21-6765ee11f224/java:jetbrains.mps.openapi.editor.update(MPS.Editor/)" implicit="true" />
Expand Down Expand Up @@ -17611,6 +17612,12 @@
<node concept="3Tm1VV" id="6nZQGuFEBnz" role="1B3o_S" />
<node concept="10Oyi0" id="6nZQGuFEBgY" role="3clF45" />
</node>
<node concept="3clFb_" id="15UkGIdqaGq" role="jymVt">
<property role="TrG5h" value="getGridStyle" />
<node concept="3clFbS" id="15UkGIdqaGt" role="3clF47" />
<node concept="3Tm1VV" id="15UkGIdqaGu" role="1B3o_S" />
<node concept="10Oyi0" id="15UkGIdqa$R" role="3clF45" />
</node>
<node concept="3clFb_" id="2WP$sH$Jy7Y" role="jymVt">
<property role="TrG5h" value="getGridColor" />
<node concept="3clFbS" id="2WP$sH$Jy81" role="3clF47" />
Expand Down Expand Up @@ -29473,6 +29480,24 @@
<ref role="2AI5Lk" to="wyt6:~Override" resolve="Override" />
</node>
</node>
<node concept="2tJIrI" id="15UkGIdqg2J" role="jymVt" />
<node concept="2tJIrI" id="15UkGIdqg2K" role="jymVt" />
<node concept="3clFb_" id="15UkGIdqgPI" role="jymVt">
<property role="TrG5h" value="getGridStyle" />
<node concept="3Tm1VV" id="15UkGIdqgPK" role="1B3o_S" />
<node concept="10Oyi0" id="15UkGIdqgPL" role="3clF45" />
<node concept="3clFbS" id="15UkGIdqgPM" role="3clF47">
<node concept="3clFbF" id="15UkGIdqjCr" role="3cqZAp">
<node concept="10M0yZ" id="15UkGIdqkjA" role="3clFbG">
<ref role="3cqZAo" to="p8va:~mxGraphComponent.GRID_STYLE_DOT" resolve="GRID_STYLE_DOT" />
<ref role="1PxDUh" to="p8va:~mxGraphComponent" resolve="mxGraphComponent" />
</node>
</node>
</node>
<node concept="2AHcQZ" id="15UkGIdqgPN" role="2AJF6D">
<ref role="2AI5Lk" to="wyt6:~Override" resolve="Override" />
</node>
</node>
<node concept="2tJIrI" id="2WP$sH$KKxy" role="jymVt" />
<node concept="3clFb_" id="2WP$sH$KLc_" role="jymVt">
<property role="TrG5h" value="getGridColor" />
Expand Down

0 comments on commit 12bdc3a

Please sign in to comment.