From 56030fc7335a796c1a714e8011bde1d14215bd85 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 11:18:49 +0100 Subject: [PATCH 01/38] core.base: use JB classes for search tool --- .../core/base/pluginSolution/plugin.mps | 46 ++++++++++--------- .../pluginSolution/pluginSolution.msd | 2 + 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index c36c07e1b3f..b6acdb8cd60 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -107,6 +107,9 @@ + + + @@ -2376,11 +2379,11 @@ - + - + @@ -2389,11 +2392,11 @@ - + - + @@ -2405,11 +2408,11 @@ - + - + @@ -2457,7 +2460,7 @@ - + @@ -2468,14 +2471,14 @@ - - - - + + + + @@ -2523,7 +2526,7 @@ - + @@ -2570,7 +2573,7 @@ - + @@ -2714,11 +2717,11 @@ - + - + @@ -3062,6 +3065,7 @@ + @@ -3071,7 +3075,7 @@ - + @@ -3103,7 +3107,7 @@ - + @@ -3294,7 +3298,7 @@ - + @@ -5369,9 +5373,6 @@ - - - @@ -5935,6 +5936,9 @@ + + + diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd index 3dcd57dff99..4db4280e5c7 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd @@ -30,6 +30,7 @@ 8e98f4e2-decf-4e97-bf80-9109e8b759ee(jetbrains.mps.lang.constraints.rules.runtime) f647e48e-4568-4f4c-b48a-1546492c6a2e(org.jdom) 1144260c-e9a5-49a2-9add-39a1a1a7077e(de.itemis.mps.editor.diagram.runtime) + 39983771-4e9b-401b-a1a9-1da6c777c843(MPS.ThirdParty) @@ -65,6 +66,7 @@ + From c962c9d5acb90c20230f90da2b6420c2ba0d4697 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 11:25:09 +0100 Subject: [PATCH 02/38] core.base: replace the search icon --- .../models/com/mbeddr/core/base/pluginSolution/plugin.mps | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index b6acdb8cd60..a72546b2423 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -2820,9 +2820,10 @@ - - - + + + + From 02c18a523b2507a1d550f0a24fdfb422020aab11 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 11:28:26 +0100 Subject: [PATCH 03/38] core.base: move the search tool to the bottom --- .../models/com/mbeddr/core/base/pluginSolution/plugin.mps | 1 - 1 file changed, 1 deletion(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index a72546b2423..2d4aacba360 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -2096,7 +2096,6 @@ - From 7ce3a3615fd6010efede2fa67b823cebde7a396a Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 12:29:19 +0100 Subject: [PATCH 04/38] core.base: only adjust the icon column of the search tool --- .../core/base/pluginSolution/plugin.mps | 364 +++--------------- 1 file changed, 51 insertions(+), 313 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 2d4aacba360..4ff932b1e40 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -110,7 +110,7 @@ - + @@ -2956,7 +2956,6 @@ - @@ -3305,79 +3304,69 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + - - - - - + + + + + + + + + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - + + + + - + - + @@ -3385,21 +3374,8 @@ - - - - - - - - - - - - - - - + + @@ -3409,242 +3385,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -3656,13 +3397,10 @@ - - - - - - + + + From d9e5cec08b9d1ba685c99f997e10650c34d3733c Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 12:34:16 +0100 Subject: [PATCH 05/38] core.base: remove creating ellises of label in search labels --- .../core/base/pluginSolution/plugin.mps | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 4ff932b1e40..0d99609be95 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -4626,49 +4626,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From 194ad706d1dfeeccee9cd2c2f4c4f6ed82d7b64b Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 12:38:08 +0100 Subject: [PATCH 06/38] core.base: don't use the global repository in the search tool --- .../core/base/pluginSolution/plugin.mps | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 0d99609be95..e6f2e30c47d 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -2958,12 +2958,14 @@ + + @@ -3004,6 +3006,7 @@ + @@ -3046,6 +3049,7 @@ + @@ -3078,6 +3082,17 @@ + + + + + + + + + + + @@ -3125,6 +3140,7 @@ + @@ -3187,6 +3203,17 @@ + + + + + + + + + + + @@ -3262,6 +3289,17 @@ + + + + + + + + + + + @@ -3286,6 +3324,7 @@ + @@ -5077,10 +5116,31 @@ + + + + + + + + + + + + + + + + + + + + + @@ -5095,6 +5155,12 @@ + + + + + + @@ -5104,6 +5170,7 @@ + @@ -5136,6 +5203,7 @@ + @@ -5150,6 +5218,7 @@ + @@ -5222,6 +5291,7 @@ + @@ -5260,6 +5330,7 @@ + @@ -5280,6 +5351,7 @@ + @@ -5311,6 +5383,7 @@ + @@ -5451,6 +5524,9 @@ + + + From 96f16649f0a9a1d78b01de2fa6d9a95bc5a58ef1 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 14:19:46 +0100 Subject: [PATCH 07/38] core.base: use a toolbar for the buttons in the search tool --- .../core/base/pluginSolution/plugin.mps | 661 +++++++++++------- 1 file changed, 396 insertions(+), 265 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index e6f2e30c47d..411a52bae2e 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -111,6 +111,8 @@ + + @@ -214,6 +216,9 @@ + + + @@ -2351,8 +2356,8 @@ - - + + @@ -2382,22 +2387,9 @@ - - - - - - - - - - - - - - - - + + + @@ -2415,6 +2407,13 @@ + + + + + + + @@ -2432,6 +2431,10 @@ + + + + @@ -2502,121 +2505,16 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -2673,13 +2571,8 @@ - - - - - - - + + @@ -2694,19 +2587,19 @@ - - - + + + - + - - + + - + + - @@ -2810,155 +2703,123 @@ - - - - - - + + + + + - - - - - - - + + + - - - - - - - - - - - - - - - - - - + + + + + - - - - + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - - + + + - - - - - - - - - + + + + + + - - - + + - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -3143,7 +3004,7 @@ - + @@ -3398,6 +3259,15 @@ + + + + + + + + + @@ -3405,8 +3275,8 @@ - - + + @@ -3418,8 +3288,8 @@ - - + + @@ -3582,6 +3452,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -22299,5 +22204,231 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 852ac7a9fe7a0d6a6316b359865629c122d1147b Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 15:23:44 +0100 Subject: [PATCH 08/38] core.pointers: add a missing null check --- .../languageModels/behavior.mps | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.arrays/languageModels/behavior.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.arrays/languageModels/behavior.mps index bd58f973f38..631378d4552 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.arrays/languageModels/behavior.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.arrays/languageModels/behavior.mps @@ -2899,17 +2899,28 @@ - - - - - + + + + + + + + - - - - + + + + + + + + + + + + From 52f0442a0b4e90e04eabac826d471d3dfa950ba6 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 15:23:59 +0100 Subject: [PATCH 09/38] core.base: implement searching for the project scope --- .../core/base/pluginSolution/plugin.mps | 2233 +++++++++-------- 1 file changed, 1205 insertions(+), 1028 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 411a52bae2e..4a942aca2a8 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -113,6 +113,10 @@ + + + + @@ -319,7 +323,9 @@ - + + + @@ -511,6 +517,7 @@ + @@ -751,6 +758,7 @@ + @@ -2101,6 +2109,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -2114,7 +2142,7 @@ - + @@ -2165,7 +2193,7 @@ - + @@ -2366,16 +2394,11 @@ - - - - - - - - - - + + + + + @@ -2828,30 +2851,22 @@ - + - - - - - - - - - - + + + + - - - - - - - - - + + + + + + + @@ -2869,30 +2884,22 @@ - + - - - - + + + + - - - - - - - - - - - - - - - + + + + + + + @@ -2904,12 +2911,43 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3007,177 +3045,100 @@ - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - @@ -3581,135 +3542,65 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - + + + + + - - - - - - + + + + + + - - + + - - - - - - - - + + + + + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -3718,103 +3609,68 @@ + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - + + - + - + - + - - - + + + + + + + + + + + + + + + - - - - - + @@ -3823,10 +3679,16 @@ + + + + + + - + @@ -3841,14 +3703,14 @@ - - + + - + @@ -3873,94 +3735,163 @@ - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + - - - + + + + + + + + + + - - - - - - - - - - - + + + + - - - + + + + + + + + + + @@ -3970,760 +3901,884 @@ - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + - - - + + + + + + + - - + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + - - - - - - - + + - - - + + + + + + + + + - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + - - - - - - + + + - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - + + + + - - - - - - + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + - - - - + + + - - - - - - - - - - - - + + + + + + + + + - - - + + + - - + + + - - - - + + + + + + + + + + + + + + + + + + + + - - - + + + + - - - - - - - - - - - - + + + - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - + + + + + + + + - - - - - + + + + + + + + + + + + + - - - - - + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + - - - - + + + - - - - - - - - - - - - + + + + + + + + + - - - + + + - - + + + - - - - - - - - - + + + + + + + + - - - + + + - - - - - - - - - - - + + - - + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - + + - - - + + + + + + + + - - + + + + + + + + + + + + + @@ -4805,9 +4860,11 @@ - + - + + + @@ -4819,6 +4876,13 @@ + + + + + + + @@ -4852,6 +4916,7 @@ + @@ -4945,6 +5010,7 @@ + @@ -4957,6 +5023,7 @@ + @@ -4969,6 +5036,7 @@ + @@ -4981,6 +5049,7 @@ + @@ -4993,6 +5062,7 @@ + @@ -22430,5 +22500,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From d0de9f8da5847a8126d5f79aecbdad9b15df4d71 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 20:57:23 +0100 Subject: [PATCH 10/38] core.base: implement searching for the global scope --- .../core/base/pluginSolution/plugin.mps | 145 ++++++++++++++++++ 1 file changed, 145 insertions(+) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 4a942aca2a8..e617a94d0e0 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -2109,6 +2109,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -2918,6 +2938,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5376,6 +5428,24 @@ + + + + + + + + + + + + + + + + + + @@ -22607,5 +22677,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 88fdc44214097453f261180b19b14757aa6bac54 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 21:32:49 +0100 Subject: [PATCH 11/38] core.base: implement an approximate search --- .../core/base/pluginSolution/plugin.mps | 829 +++++++++++++++++- 1 file changed, 790 insertions(+), 39 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index e617a94d0e0..9f3842cd046 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -266,6 +266,7 @@ + @@ -2456,6 +2457,12 @@ + + + + + + @@ -2617,6 +2624,9 @@ + + + @@ -2841,6 +2851,21 @@ + + + + + + + + + + + + + + + @@ -3134,6 +3159,9 @@ + + + @@ -3197,6 +3225,10 @@ + + + + @@ -3500,6 +3532,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3593,6 +3660,15 @@ + + + + + + + + + @@ -3608,7 +3684,6 @@ - @@ -3715,6 +3790,9 @@ + + + @@ -3731,6 +3809,10 @@ + + + + @@ -4242,6 +4324,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4458,34 +4623,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -4568,6 +4707,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4750,16 +4946,8 @@ - - - - - - - - - - + + @@ -4928,6 +5116,11 @@ + + + + + @@ -22400,6 +22593,14 @@ + + + + + + + + @@ -22752,5 +22953,555 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From a7dd7fca6fbf8698d543e1e8055c4dd1875938a2 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 21:43:37 +0100 Subject: [PATCH 12/38] core.base: implement match case for the search tool (default: false) --- .../core/base/pluginSolution/plugin.mps | 386 ++++++++++++++++-- 1 file changed, 358 insertions(+), 28 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 9f3842cd046..339ae764734 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -2463,6 +2463,12 @@ + + + + + + @@ -2627,6 +2633,9 @@ + + + @@ -2866,6 +2875,21 @@ + + + + + + + + + + + + + + + @@ -3162,6 +3186,9 @@ + + + @@ -3229,6 +3256,10 @@ + + + + @@ -3567,6 +3598,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3793,6 +3859,9 @@ + + + @@ -3813,6 +3882,10 @@ + + + + @@ -3825,6 +3898,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -4289,7 +4386,7 @@ - + @@ -4331,6 +4428,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4347,16 +4490,11 @@ - - - - - - - + + - + @@ -4374,18 +4512,13 @@ - - - - - - - + + - + @@ -4396,15 +4529,10 @@ - - - - - - - - + + + @@ -4703,6 +4831,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4728,7 +4888,7 @@ - + @@ -4755,7 +4915,7 @@ - + @@ -5108,7 +5268,6 @@ - @@ -5121,6 +5280,11 @@ + + + + + @@ -22601,6 +22765,14 @@ + + + + + + + + @@ -23503,5 +23675,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From eb686fa522ed6a550c19d39b921a022199b436ed Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 22:46:04 +0100 Subject: [PATCH 13/38] core.base: propertly update the search tool model --- .../core/base/pluginSolution/plugin.mps | 125 +++++++++++++----- 1 file changed, 94 insertions(+), 31 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 339ae764734..61b17396742 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -3069,6 +3069,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3079,22 +3115,8 @@ - - - - - - - - - - - - - - - - + + @@ -3108,7 +3130,7 @@ - + @@ -3121,7 +3143,7 @@ - + @@ -3210,32 +3232,73 @@ - - - - - + + + + + + + + - - - + + + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -6109,8 +6172,8 @@ - - + + From 763b074c1d7b53bff5fcec5dd7de2df8dc4e1981 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 23:21:32 +0100 Subject: [PATCH 14/38] core.base: update the search window title on the EDT thread --- .../core/base/pluginSolution/plugin.mps | 164 ++++++++++++++---- 1 file changed, 128 insertions(+), 36 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 61b17396742..9b26f109b08 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -2127,6 +2127,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2147,6 +2178,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2170,25 +2232,40 @@ - - - - - - - + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - @@ -2221,26 +2298,41 @@ - - - - - - - + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 204e2e72f589f1b2824d4514ae4d860da9d4a7f8 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 23:31:01 +0100 Subject: [PATCH 15/38] update the readme --- CHANGELOG.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 860e642068c..e05f04f43ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ Semantic Versioning and the changes are simply documented in reverse chronologic # December 2024 +## com.mbeddr.core.base + +### Changed + +- The mbeddr search tool was improved: It can now also search the project and globally. It also got options for approximate searching with an error distance, and matching the case. The UI was also improved. + ## com.mbeddr.mpsutil ### Fixed @@ -17,7 +23,7 @@ Semantic Versioning and the changes are simply documented in reverse chronologic ## com.mbeddr.mpsutil -### Feature +### Added - A new language `com.mbeddr.mpsutil.collections` was added that adds support for a set type `nset` that use nodes as the values of the set. Equivalence of nodes is checked structurally. The hash code calculation is done for all properties and children and the first level of references. The runtime solution also contains a more general class `EquivalenceHashSet` to implement hashsets with arbitrary `equals` and `hashcode` methods. @@ -45,7 +51,7 @@ Semantic Versioning and the changes are simply documented in reverse chronologic ## com.mbeddr.mpsutil.interpreter -### Feature +### Added - Added user defineable call back function when trace node is added to the trace tree @@ -63,7 +69,7 @@ Semantic Versioning and the changes are simply documented in reverse chronologic ## com.mbeddr.mpsutil.checkinHandler -### Feature +### Added - A new kind of Checkin handlers (background handler) now support the interface `CommitCheck` which allows more options like running the code after the commit or in the background. From f10d2d94452b8be5a6bbfee595c057e8810bc417 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Tue, 10 Dec 2024 23:42:29 +0100 Subject: [PATCH 16/38] update the build script --- .../com.mbeddr.platform/models/com/mbeddr/platform/build.mps | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps b/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps index dab70c29fad..4aad44f7fb9 100644 --- a/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps +++ b/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps @@ -15178,6 +15178,11 @@ + + + + + From 24833d0b2af9e87319984735285ed3fc700fefdc Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Wed, 11 Dec 2024 00:16:09 +0100 Subject: [PATCH 17/38] core.base: force the search tool to open at the bottom --- .../core/base/pluginSolution/plugin.mps | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 9b26f109b08..fcbd8ec0155 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -3838,6 +3838,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -12905,6 +12925,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -23141,6 +23181,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -23248,6 +23308,26 @@ + + + + + + + + + + + + + + + + + + + + From be245801baa52d9b282cb490c5bfc99e5e24a304 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Wed, 11 Dec 2024 08:05:53 +0100 Subject: [PATCH 18/38] core.base: also enable the search tool for languages --- CHANGELOG.md | 2 +- .../core/base/pluginSolution/plugin.mps | 84 ++++++++++--------- 2 files changed, 44 insertions(+), 42 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e05f04f43ae..24017274fdf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ Semantic Versioning and the changes are simply documented in reverse chronologic ### Changed -- The mbeddr search tool was improved: It can now also search the project and globally. It also got options for approximate searching with an error distance, and matching the case. The UI was also improved. +- The mbeddr search tool was improved: It can now also search languages, the project and globally. It also got options for approximate searching with an error distance, and matching the case. The UI was also improved. ## com.mbeddr.mpsutil diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index fcbd8ec0155..c88ad9dbfb0 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -2279,7 +2279,7 @@ - + @@ -2291,7 +2291,7 @@ - + @@ -2314,14 +2314,14 @@ - + - + @@ -2342,9 +2342,9 @@ - + - + @@ -3045,7 +3045,7 @@ - + @@ -3072,9 +3072,9 @@ - + - + @@ -12891,8 +12891,8 @@ - - + + @@ -12900,7 +12900,7 @@ - + @@ -12964,18 +12964,11 @@ - - - - - - - - - - - - + + + + + @@ -12983,23 +12976,6 @@ - - - - - - - - - - - - - - - - - @@ -24068,5 +24044,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + From 33419a54927e8042a026da40b01dd29d4792a157 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Wed, 11 Dec 2024 11:08:44 +0100 Subject: [PATCH 19/38] core.base: customize the empty search table text --- .../core/base/pluginSolution/plugin.mps | 102 +++++++++++++++++- 1 file changed, 100 insertions(+), 2 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index c88ad9dbfb0..9b6b3140af5 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -2538,8 +2538,8 @@ - - + + @@ -24070,5 +24070,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 737062fe4a06a0f291f5932ef609ae2a759ca683 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Thu, 12 Dec 2024 10:09:14 +0100 Subject: [PATCH 20/38] core.base: unify search solution and language group and add all search actions to the MPS search group --- .../core/base/pluginSolution/plugin.mps | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 9b6b3140af5..4ec4d6fd1c7 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -3801,6 +3801,9 @@ + + + @@ -17139,19 +17142,6 @@ - - - - - - - - - - - - - @@ -23125,6 +23115,9 @@ + + + @@ -23252,6 +23245,9 @@ + + + @@ -24059,7 +24055,7 @@ - + @@ -24069,6 +24065,13 @@ + + + + + + + From 6630b83f33a51a63f5fdcdb868ad765d3d044c34 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Thu, 12 Dec 2024 10:14:01 +0100 Subject: [PATCH 21/38] core.base: convert to search button action to an internal action --- .../core/base/pluginSolution/plugin.mps | 205 ++++++++++-------- 1 file changed, 116 insertions(+), 89 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 4ec4d6fd1c7..8018fb0df5b 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -220,9 +220,6 @@ - - - @@ -2989,8 +2986,11 @@ - - + + + + + @@ -22862,90 +22862,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -24171,5 +24087,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 99bb4fb5ac8d52688cdf064bf77edf3f4cbf0314 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Thu, 12 Dec 2024 10:43:49 +0100 Subject: [PATCH 22/38] core.base: update the search results on the EDT thread --- .../core/base/pluginSolution/plugin.mps | 129 ++++++++++-------- 1 file changed, 72 insertions(+), 57 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 8018fb0df5b..a09ca78ec80 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -3324,73 +3324,88 @@ - - - - - + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From 191c61293322b8b7f78ad2e26b000bffa99fd127 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 08:41:05 +0100 Subject: [PATCH 23/38] core.base: show all platform action groups next to find usages --- .../models/com/mbeddr/core/base/pluginSolution/plugin.mps | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index a09ca78ec80..c25a789bcf2 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -17141,7 +17141,7 @@ - + @@ -17154,7 +17154,7 @@ - + @@ -23981,7 +23981,7 @@ - + From f5ff1c742955b12132622af10a97b0dfe9203edf Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 10:15:50 +0100 Subject: [PATCH 24/38] core.base: improve the approximate search --- .../core/base/pluginSolution/plugin.mps | 97 +++++++++++++++++-- 1 file changed, 90 insertions(+), 7 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index c25a789bcf2..35012f6136a 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -3920,13 +3920,56 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4669,6 +4712,21 @@ + + + + + + + + + + + + + + + @@ -4677,9 +4735,6 @@ - - - @@ -4690,12 +4745,40 @@ + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + From 4303ad8d23337d5a519668da5961fa11bc5035b5 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 10:23:25 +0100 Subject: [PATCH 25/38] core.base: always show the search tool and set the project scope as the default scope --- .../com/mbeddr/core/base/pluginSolution/plugin.mps | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 35012f6136a..9074655b70a 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -194,6 +194,7 @@ + @@ -2107,6 +2108,7 @@ + @@ -2391,6 +2393,14 @@ + + + + + + + + From 8565b3c8fd92f426bbcd46e54b477daedc3b585c Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 10:30:15 +0100 Subject: [PATCH 26/38] core.base: sort the results by the short name length --- .../core/base/pluginSolution/plugin.mps | 59 ++++++++++++++++++- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 9074655b70a..0014464639a 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -747,6 +747,9 @@ + + + @@ -5458,8 +5461,60 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From d19fa1d05b83d08e3edf8103551eea99d7aa3e7c Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 10:38:27 +0100 Subject: [PATCH 27/38] core.base: add the ability to search by regex --- CHANGELOG.md | 2 +- .../core/base/pluginSolution/plugin.mps | 499 ++++++++++++++++++ 2 files changed, 500 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24017274fdf..cc26eb06775 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ Semantic Versioning and the changes are simply documented in reverse chronologic ### Changed -- The mbeddr search tool was improved: It can now also search languages, the project and globally. It also got options for approximate searching with an error distance, and matching the case. The UI was also improved. +- The mbeddr search tool was improved: It can now also search languages, the project and globally. It also got options for approximate searching with an error distance matching the case and searching by a regular expression. The UI was also improved. ## com.mbeddr.mpsutil diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 0014464639a..5355b824f33 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -117,6 +117,7 @@ + @@ -2571,6 +2572,12 @@ + + + + + + @@ -2683,6 +2690,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2738,6 +2849,9 @@ + + + @@ -2992,6 +3106,21 @@ + + + + + + + + + + + + + + + @@ -3316,6 +3445,9 @@ + + + @@ -3443,6 +3575,10 @@ + + + + @@ -3816,6 +3952,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4111,6 +4283,9 @@ + + + @@ -4135,6 +4310,10 @@ + + + + @@ -4282,6 +4461,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4793,6 +5060,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5190,6 +5487,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5609,6 +5936,7 @@ + @@ -5626,6 +5954,11 @@ + + + + + @@ -24352,6 +24685,14 @@ + + + + + + + + @@ -24361,5 +24702,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 979ae7f20c3b0b57327c30daa263fc5de8a923b8 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 11:26:31 +0100 Subject: [PATCH 28/38] core.base: search the orginal text when the node implements ISearchSupport --- .../models/com/mbeddr/core/base/pluginSolution/plugin.mps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 5355b824f33..0726586f5d9 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -4901,8 +4901,8 @@ - - + + From a332712c445c28211896a0b13b2f5914f60f49a7 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 11:34:33 +0100 Subject: [PATCH 29/38] core.base: generate a better default namespace for search results --- .../models/com/mbeddr/platform/build.mps | 5 + .../languageModels/behavior.mps | 55 -- .../languages/com.mbeddr.core.base/base.mpl | 2 + .../languageModels/behavior.mps | 90 +-- .../core/base/pluginSolution/plugin.mps | 547 +++++++++++------- .../languageModels/behavior.mps | 35 +- .../languageModels/behavior.mps | 375 +++--------- 7 files changed, 449 insertions(+), 660 deletions(-) diff --git a/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps b/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps index 4aad44f7fb9..cd0d88aea69 100644 --- a/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps +++ b/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps @@ -15427,6 +15427,11 @@ + + + + + diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.arrays/languageModels/behavior.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.arrays/languageModels/behavior.mps index 631378d4552..5db2543ce70 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.arrays/languageModels/behavior.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.arrays/languageModels/behavior.mps @@ -267,7 +267,6 @@ - @@ -2960,60 +2959,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/base.mpl b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/base.mpl index 265ed4b6de1..56a3238edc9 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/base.mpl +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/base.mpl @@ -108,6 +108,7 @@ 86441d7a-e194-42da-81a5-2161ec62a379(MPS.Workbench) 528ff3b9-5fc4-40dd-931f-c6ce3650640e(jetbrains.mps.lang.migration.runtime) f3061a53-9226-4cc5-a443-f952ceaf5816(jetbrains.mps.baseLanguage) + 9e24fcdc-a232-4d24-8c95-1f525946191a(com.mbeddr.core.base.pluginSolution) @@ -185,6 +186,7 @@ + diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps index 075f931493a..7d6853a0f02 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps @@ -69,6 +69,7 @@ + @@ -1134,74 +1135,15 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - + @@ -2486,12 +2428,28 @@ - - + + + + + + + + + + + + + + + + + + diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 0726586f5d9..7ecf69f8aa2 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -682,7 +682,9 @@ - + + + @@ -4867,12 +4869,10 @@ - - - - - - + + + + @@ -5125,121 +5125,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -5288,8 +5173,11 @@ - - + + + + + @@ -5544,83 +5432,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -5673,8 +5484,11 @@ - - + + + + + @@ -5918,6 +5732,7 @@ + @@ -5925,6 +5740,7 @@ + @@ -5967,6 +5783,331 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.statements/languageModels/behavior.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.statements/languageModels/behavior.mps index f65ecc20b10..3939a748a2e 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.statements/languageModels/behavior.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.statements/languageModels/behavior.mps @@ -3470,39 +3470,20 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - + + - + diff --git a/code/languages/com.mbeddr.doc/languages/com.mbeddr.doc/languageModels/behavior.mps b/code/languages/com.mbeddr.doc/languages/com.mbeddr.doc/languageModels/behavior.mps index b8dceabbf48..f1f6b2ce499 100644 --- a/code/languages/com.mbeddr.doc/languages/com.mbeddr.doc/languageModels/behavior.mps +++ b/code/languages/com.mbeddr.doc/languages/com.mbeddr.doc/languageModels/behavior.mps @@ -679,45 +679,21 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - + @@ -2298,24 +2274,6 @@ - - - - - - - - - - - - - - - - - - @@ -2643,44 +2601,15 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - + @@ -3033,45 +2962,21 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - + @@ -4184,45 +4089,16 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - + @@ -4268,45 +4144,21 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - + @@ -4382,45 +4234,21 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - + @@ -4466,45 +4294,16 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - + @@ -4561,24 +4360,6 @@ - - - - - - - - - - - - - - - - - - @@ -6209,44 +5990,20 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - + From ede040c3bdfaf7efd4cabbc3fd510c37998eedc5 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 12:37:42 +0100 Subject: [PATCH 30/38] core.base: fix a NullPointer in IIdentifierNamedConcept --- .../languageModels/behavior.mps | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps index 7d6853a0f02..0530299ee9a 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps @@ -1489,6 +1489,19 @@ + + + + + + + + + + + + + From 6fca51d82fa2127a43da55688f1462442a14e699 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 12:46:49 +0100 Subject: [PATCH 31/38] core.base: don't show more than 10000 search results Updating the UI takes took long for more results and it freezes. --- .../core/base/pluginSolution/plugin.mps | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 7ecf69f8aa2..757ed791840 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -737,6 +737,9 @@ + + + @@ -4158,6 +4161,15 @@ + + + + + + + + + @@ -5604,8 +5616,15 @@ - - + + + + + + + + + From 8d6be6a0056e8025f121e1924c1a6d492aaf7491 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 13:04:31 +0100 Subject: [PATCH 32/38] core.base: adapt the size of the concept search result column automatically --- .../core/base/pluginSolution/plugin.mps | 309 +++++++++++++++++- 1 file changed, 296 insertions(+), 13 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index 757ed791840..e0d425dea28 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -3621,23 +3621,27 @@ - - - - - - - - - - + + + + + + + + + + + + + + - + @@ -3661,7 +3665,7 @@ - + @@ -3694,7 +3698,139 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -6852,6 +6988,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -6874,6 +7154,7 @@ + @@ -6888,6 +7169,7 @@ + @@ -6902,6 +7184,7 @@ + From 8b3f4b09043df476fef05aa825700486955299e7 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 13:41:20 +0100 Subject: [PATCH 33/38] core.base: validate the search regex --- .../models/com/mbeddr/platform/build.mps | 5 - .../core/base/pluginSolution/plugin.mps | 321 ++++++++++++------ .../pluginSolution/pluginSolution.msd | 4 +- 3 files changed, 214 insertions(+), 116 deletions(-) diff --git a/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps b/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps index cd0d88aea69..2263175b2a6 100644 --- a/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps +++ b/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps @@ -15168,11 +15168,6 @@ - - - - - diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index e0d425dea28..eb26fe9d6c9 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -107,17 +107,16 @@ - - - + + @@ -2695,110 +2694,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2869,7 +2764,217 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd index 4db4280e5c7..cb69c8aa6a9 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd @@ -1,7 +1,7 @@ - + @@ -28,7 +28,6 @@ 34e84b8f-afa8-4364-abcd-a279fddddbe7(jetbrains.mps.editor.runtime) 5474e4cd-6621-4b33-a39a-75552543ba57(de.slisson.mps.conditionalEditor.hints) 8e98f4e2-decf-4e97-bf80-9109e8b759ee(jetbrains.mps.lang.constraints.rules.runtime) - f647e48e-4568-4f4c-b48a-1546492c6a2e(org.jdom) 1144260c-e9a5-49a2-9add-39a1a1a7077e(de.itemis.mps.editor.diagram.runtime) 39983771-4e9b-401b-a1a9-1da6c777c843(MPS.ThirdParty) @@ -109,7 +108,6 @@ - From 9f6f0dc6f22bffbb10aa62af5e83938fd34f651f Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 15:41:37 +0100 Subject: [PATCH 34/38] core.base: fix some NullPointers --- .../languageModels/behavior.mps | 33 +++-- .../languageModels/behavior.mps | 29 +++-- .../languageModels/behavior.mps | 116 ++++++++++++------ 3 files changed, 123 insertions(+), 55 deletions(-) diff --git a/code/languages/com.mbeddr.cc/languages/com.mbeddr.cc.requirements/languageModels/behavior.mps b/code/languages/com.mbeddr.cc/languages/com.mbeddr.cc.requirements/languageModels/behavior.mps index bb3c1436b6e..9baf32068cd 100644 --- a/code/languages/com.mbeddr.cc/languages/com.mbeddr.cc.requirements/languageModels/behavior.mps +++ b/code/languages/com.mbeddr.cc/languages/com.mbeddr.cc.requirements/languageModels/behavior.mps @@ -2078,17 +2078,30 @@ - - - - - + + + + + + + + + + - - - - - + + + + + + + + + + + + + diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps index 0530299ee9a..5beea8bb0ed 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/behavior.mps @@ -1021,17 +1021,28 @@ - - - - - + + + + + + + + - - - - + + + + + + + + + + + + diff --git a/code/languages/com.mbeddr.doc/languages/com.mbeddr.doc/languageModels/behavior.mps b/code/languages/com.mbeddr.doc/languages/com.mbeddr.doc/languageModels/behavior.mps index f1f6b2ce499..adb0a21f102 100644 --- a/code/languages/com.mbeddr.doc/languages/com.mbeddr.doc/languageModels/behavior.mps +++ b/code/languages/com.mbeddr.doc/languages/com.mbeddr.doc/languageModels/behavior.mps @@ -2234,17 +2234,28 @@ - - - - - + + + + + + + + - - - - + + + + + + + + + + + + @@ -4060,17 +4071,28 @@ - - - - - + + + + + + + + - - - - + + + + + + + + + + + + @@ -4115,17 +4137,28 @@ - - - - - + + + + + + + + - - - - + + + + + + + + + + + + @@ -4265,17 +4298,28 @@ - - - - - + + + + + + + + - - - - + + + + + + + + + + + + From 55fce676b1783c0a7cbb7bdba9c2fdbb62ca362b Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 15:41:30 +0100 Subject: [PATCH 35/38] core.base: add support for filtering nodes --- CHANGELOG.md | 2 +- .../core/base/pluginSolution/plugin.mps | 610 ++++++++++++++++++ .../pluginSolution/pluginSolution.msd | 1 + 3 files changed, 612 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc26eb06775..8819adb2289 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ Semantic Versioning and the changes are simply documented in reverse chronologic ### Changed -- The mbeddr search tool was improved: It can now also search languages, the project and globally. It also got options for approximate searching with an error distance matching the case and searching by a regular expression. The UI was also improved. +- The mbeddr search tool was improved: It can now also search languages, the project and globally. It also got options for approximate searching with an error distance matching the case and searching by a regular expression. Nodes that should or should not be filter, can now be customized through the extension point `SearchNodeFilter`. The UI was also improved. ## com.mbeddr.mpsutil diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index eb26fe9d6c9..b3bf44bbfe8 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -20,6 +20,7 @@ + @@ -265,6 +266,9 @@ + + + @@ -292,6 +296,7 @@ + @@ -554,6 +559,15 @@ + + + + + + + + + @@ -622,6 +636,9 @@ + + + @@ -633,6 +650,9 @@ + + + @@ -755,6 +775,7 @@ + @@ -763,14 +784,19 @@ + + + + + @@ -783,12 +809,25 @@ + + + + + + + + + + + + + @@ -3247,6 +3286,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4813,6 +4927,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4834,6 +5020,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4901,6 +5114,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4912,6 +5289,7 @@ + @@ -25408,5 +25786,237 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd index cb69c8aa6a9..9a968ecea1d 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/pluginSolution.msd @@ -47,6 +47,7 @@ + From d948b7d09ae65de31197e13fc726b92b8511d5b4 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Mon, 16 Dec 2024 22:07:19 +0100 Subject: [PATCH 36/38] force save all --- .../languageModels/editor.mps | 8 +- .../core/base/pluginSolution/plugin.mps | 132 +++++++++--------- .../com.mbeddr.spreadsheat/spreadsheat.mpl | 7 + 3 files changed, 77 insertions(+), 70 deletions(-) diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/editor.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/editor.mps index 6feadeae48b..ccdfaa1ee31 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/editor.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/languageModels/editor.mps @@ -5651,7 +5651,7 @@ - + @@ -5682,7 +5682,7 @@ - + @@ -5713,7 +5713,7 @@ - + @@ -5744,7 +5744,7 @@ - + diff --git a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps index b3bf44bbfe8..107bbd961d0 100644 --- a/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps +++ b/code/languages/com.mbeddr.core/languages/com.mbeddr.core.base/solutions/pluginSolution/models/com/mbeddr/core/base/pluginSolution/plugin.mps @@ -2339,7 +2339,7 @@ - + @@ -2364,7 +2364,7 @@ - + @@ -2543,7 +2543,7 @@ - + @@ -3005,7 +3005,7 @@ - + @@ -3219,7 +3219,7 @@ - + @@ -3291,12 +3291,12 @@ - + - + @@ -3425,7 +3425,7 @@ - + @@ -3678,7 +3678,7 @@ - + @@ -3777,7 +3777,7 @@ - + @@ -3894,12 +3894,12 @@ - + - + @@ -3907,12 +3907,12 @@ - + - + @@ -4017,7 +4017,7 @@ - + @@ -4030,7 +4030,7 @@ - + @@ -4455,7 +4455,7 @@ - + @@ -4561,7 +4561,7 @@ - + @@ -4636,7 +4636,7 @@ - + @@ -4731,8 +4731,8 @@ - - + + @@ -4932,7 +4932,7 @@ - + @@ -5681,7 +5681,7 @@ - + @@ -5984,7 +5984,7 @@ - + @@ -6489,7 +6489,7 @@ - + @@ -6500,7 +6500,7 @@ - + @@ -7724,7 +7724,7 @@ - + @@ -7853,7 +7853,7 @@ - + @@ -8002,7 +8002,7 @@ - + @@ -14393,7 +14393,7 @@ - + @@ -14404,7 +14404,7 @@ - + @@ -18270,7 +18270,7 @@ - + @@ -18488,7 +18488,7 @@ - + @@ -18770,7 +18770,7 @@ - + @@ -19060,7 +19060,7 @@ - + @@ -20540,7 +20540,7 @@ - + @@ -20602,7 +20602,7 @@ - + @@ -21108,7 +21108,7 @@ - + @@ -22299,11 +22299,11 @@ - + - + @@ -23831,7 +23831,7 @@ - + @@ -24302,7 +24302,7 @@ - + @@ -24370,7 +24370,7 @@ - + @@ -24438,7 +24438,7 @@ - + @@ -24447,7 +24447,7 @@ - + @@ -24536,7 +24536,7 @@ - + @@ -24666,7 +24666,7 @@ - + @@ -24685,7 +24685,7 @@ - + @@ -24694,7 +24694,7 @@ - + @@ -24762,7 +24762,7 @@ - + @@ -24830,7 +24830,7 @@ - + @@ -25238,7 +25238,7 @@ - + @@ -25306,7 +25306,7 @@ - + @@ -25374,7 +25374,7 @@ - + @@ -25396,7 +25396,7 @@ - + @@ -25505,7 +25505,7 @@ - + @@ -25520,7 +25520,7 @@ - + @@ -25624,7 +25624,7 @@ - + @@ -25646,7 +25646,7 @@ - + @@ -25714,7 +25714,7 @@ - + @@ -25782,7 +25782,7 @@ - + @@ -25790,7 +25790,7 @@ - + @@ -25865,7 +25865,7 @@ - + @@ -25874,7 +25874,7 @@ - + @@ -25965,7 +25965,7 @@ - + @@ -26012,7 +26012,7 @@ - + diff --git a/code/languages/com.mbeddr.doc/languages/com.mbeddr.spreadsheat/spreadsheat.mpl b/code/languages/com.mbeddr.doc/languages/com.mbeddr.spreadsheat/spreadsheat.mpl index 03189be9a6b..7c23061453e 100644 --- a/code/languages/com.mbeddr.doc/languages/com.mbeddr.spreadsheat/spreadsheat.mpl +++ b/code/languages/com.mbeddr.doc/languages/com.mbeddr.spreadsheat/spreadsheat.mpl @@ -51,6 +51,13 @@ + + + + + + + From 51fbe2f5754f0ee4203fe2e379bfc6abe9bd05e5 Mon Sep 17 00:00:00 2001 From: Niko Stotz Date: Tue, 17 Dec 2024 14:29:28 +0100 Subject: [PATCH 37/38] use SoftMap instead of WeakMap to cache interpreters WeakReference is killed any time the garbage collector runs, whereas SoftReference is killed only if memory is low. Should lead to more cached interpreters. --- .../com/mbeddr/mpsutil/interpreter/rt.mps | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.interpreter/runtime/models/com/mbeddr/mpsutil/interpreter/rt.mps b/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.interpreter/runtime/models/com/mbeddr/mpsutil/interpreter/rt.mps index 80e361f9f24..cbadd8e8942 100644 --- a/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.interpreter/runtime/models/com/mbeddr/mpsutil/interpreter/rt.mps +++ b/code/languages/com.mbeddr.mpsutil/languages/com.mbeddr.mpsutil.interpreter/runtime/models/com/mbeddr/mpsutil/interpreter/rt.mps @@ -38,7 +38,7 @@ - + @@ -517,9 +517,6 @@ - - - @@ -13051,7 +13048,7 @@ - + @@ -13059,14 +13056,9 @@ - - - - - - - - + + + From b1c6f54c962aa9a75cf15bd9d8460760160f4227 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Wed, 18 Dec 2024 10:21:14 +0100 Subject: [PATCH 38/38] run migrations --- .../com.mbeddr.platform/models/com/mbeddr/platform/build.mps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps b/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps index b97da2ad087..8164d9a5d67 100644 --- a/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps +++ b/code/languages/com.mbeddr.build/solutions/com.mbeddr.platform/models/com/mbeddr/platform/build.mps @@ -92,7 +92,7 @@ - + @@ -120,7 +120,7 @@ - +