From d9041746be07e7fe3655cba5e3f220c6a275fc1c Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Thu, 12 Dec 2024 08:34:50 +0100 Subject: [PATCH 1/3] editor.querylist: set the target concept in the generated editor cell --- .../mpsutil/editor/querylist/runtime.mps | 44 ++++++++++++++++--- .../generator/template/main@generator.mps | 29 ++++++++++++ 2 files changed, 68 insertions(+), 5 deletions(-) diff --git a/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps b/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps index f35770188..320f162b3 100644 --- a/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps +++ b/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps @@ -384,6 +384,12 @@ + + + + + + @@ -485,11 +491,9 @@ - - - - - + + + @@ -497,6 +501,7 @@ + @@ -518,6 +523,7 @@ + @@ -538,6 +544,7 @@ + @@ -559,6 +566,7 @@ + @@ -577,6 +585,7 @@ + @@ -602,6 +611,7 @@ + @@ -646,6 +656,7 @@ + @@ -664,6 +675,7 @@ + @@ -745,6 +757,28 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/querylist/com.mbeddr.mpsutil.editor.querylist/generator/template/main@generator.mps b/code/querylist/com.mbeddr.mpsutil.editor.querylist/generator/template/main@generator.mps index f5d274c33..a9f8fc7c3 100644 --- a/code/querylist/com.mbeddr.mpsutil.editor.querylist/generator/template/main@generator.mps +++ b/code/querylist/com.mbeddr.mpsutil.editor.querylist/generator/template/main@generator.mps @@ -1242,6 +1242,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From f9b08a55da296b427cea869944abf97c656ab5bf Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Thu, 12 Dec 2024 08:37:37 +0100 Subject: [PATCH 2/3] editor.querylist: set SRole#isValid to false --- .../com/mbeddr/mpsutil/editor/querylist/runtime.mps | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps b/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps index 320f162b3..bee24b806 100644 --- a/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps +++ b/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps @@ -532,12 +532,8 @@ - - - - - - + + From 2f63fbb30b1c4b66c77ac93422b745b6ee4b4ff7 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Thu, 12 Dec 2024 08:50:32 +0100 Subject: [PATCH 3/3] editor.querylist: implement some more role methods --- .../mpsutil/editor/querylist/runtime.mps | 87 +++++++++++++------ .../generator/template/main@generator.mps | 17 ++++ 2 files changed, 77 insertions(+), 27 deletions(-) diff --git a/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps b/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps index bee24b806..e796218d1 100644 --- a/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps +++ b/code/querylist/com.mbeddr.mpsutil.editor.querylist.runtime/models/com/mbeddr/mpsutil/editor/querylist/runtime.mps @@ -57,6 +57,13 @@ + + + + + + + @@ -390,6 +397,12 @@ + + + + + + @@ -427,17 +440,7 @@ - - - - - - - - - - @@ -595,11 +598,9 @@ - - - - - + + + @@ -627,6 +628,7 @@ + @@ -640,12 +642,8 @@ - - - - - - + + @@ -677,18 +675,30 @@ - - - - - - + + + + + + + + + + + + + + + + + + @@ -775,6 +785,29 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/querylist/com.mbeddr.mpsutil.editor.querylist/generator/template/main@generator.mps b/code/querylist/com.mbeddr.mpsutil.editor.querylist/generator/template/main@generator.mps index a9f8fc7c3..43469bbe7 100644 --- a/code/querylist/com.mbeddr.mpsutil.editor.querylist/generator/template/main@generator.mps +++ b/code/querylist/com.mbeddr.mpsutil.editor.querylist/generator/template/main@generator.mps @@ -338,6 +338,7 @@ + @@ -1271,6 +1272,22 @@ + + + + + + + + + + + + + + + +