From 0d697607d3de6fe54c0ac2d031cb065e15662209 Mon Sep 17 00:00:00 2001 From: Heiko Becker Date: Tue, 28 Nov 2023 10:49:56 +0100 Subject: [PATCH 1/8] Add a first draft for collecting used languages --- .gitignore | 3 + code/.mps/modules.xml | 1 + code/statistics/de.itemis.mps.statistics.mpl | 114 +++ ...atistics.generator.templates@generator.mps | 24 + .../de.itemis.mps.statistics.behavior.mps | 12 + .../de.itemis.mps.statistics.constraints.mps | 19 + .../de.itemis.mps.statistics.editor.mps | 12 + .../de.itemis.mps.statistics.plugin.mps | 674 ++++++++++++++++++ .../de.itemis.mps.statistics.structure.mps | 11 + .../de.itemis.mps.statistics.typesystem.mps | 11 + 10 files changed, 881 insertions(+) create mode 100644 code/statistics/de.itemis.mps.statistics.mpl create mode 100644 code/statistics/generator/templates/de.itemis.mps.statistics.generator.templates@generator.mps create mode 100644 code/statistics/models/de.itemis.mps.statistics.behavior.mps create mode 100644 code/statistics/models/de.itemis.mps.statistics.constraints.mps create mode 100644 code/statistics/models/de.itemis.mps.statistics.editor.mps create mode 100644 code/statistics/models/de.itemis.mps.statistics.plugin.mps create mode 100644 code/statistics/models/de.itemis.mps.statistics.structure.mps create mode 100644 code/statistics/models/de.itemis.mps.statistics.typesystem.mps diff --git a/.gitignore b/.gitignore index 92409757a..e8bcb90b9 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,6 @@ scripts/.mps-caches # Generated during the build /kotlin-js-store/ + +# Generated by statistics plugin +code/dependencies.txt diff --git a/code/.mps/modules.xml b/code/.mps/modules.xml index ff8219ec7..e4505ba5b 100644 --- a/code/.mps/modules.xml +++ b/code/.mps/modules.xml @@ -177,6 +177,7 @@ + diff --git a/code/statistics/de.itemis.mps.statistics.mpl b/code/statistics/de.itemis.mps.statistics.mpl new file mode 100644 index 000000000..8244f1d93 --- /dev/null +++ b/code/statistics/de.itemis.mps.statistics.mpl @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 742f6602-5a2f-4313-aa6e-ae1cd4ffdc61(MPS.Platform) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/statistics/generator/templates/de.itemis.mps.statistics.generator.templates@generator.mps b/code/statistics/generator/templates/de.itemis.mps.statistics.generator.templates@generator.mps new file mode 100644 index 000000000..fe0ecd137 --- /dev/null +++ b/code/statistics/generator/templates/de.itemis.mps.statistics.generator.templates@generator.mps @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/statistics/models/de.itemis.mps.statistics.behavior.mps b/code/statistics/models/de.itemis.mps.statistics.behavior.mps new file mode 100644 index 000000000..1afb89269 --- /dev/null +++ b/code/statistics/models/de.itemis.mps.statistics.behavior.mps @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/code/statistics/models/de.itemis.mps.statistics.constraints.mps b/code/statistics/models/de.itemis.mps.statistics.constraints.mps new file mode 100644 index 000000000..ec0c321f6 --- /dev/null +++ b/code/statistics/models/de.itemis.mps.statistics.constraints.mps @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/code/statistics/models/de.itemis.mps.statistics.editor.mps b/code/statistics/models/de.itemis.mps.statistics.editor.mps new file mode 100644 index 000000000..50df3bc0a --- /dev/null +++ b/code/statistics/models/de.itemis.mps.statistics.editor.mps @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/code/statistics/models/de.itemis.mps.statistics.plugin.mps b/code/statistics/models/de.itemis.mps.statistics.plugin.mps new file mode 100644 index 000000000..789f5c33b --- /dev/null +++ b/code/statistics/models/de.itemis.mps.statistics.plugin.mps @@ -0,0 +1,674 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/statistics/models/de.itemis.mps.statistics.structure.mps b/code/statistics/models/de.itemis.mps.statistics.structure.mps new file mode 100644 index 000000000..aa04c5d74 --- /dev/null +++ b/code/statistics/models/de.itemis.mps.statistics.structure.mps @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/code/statistics/models/de.itemis.mps.statistics.typesystem.mps b/code/statistics/models/de.itemis.mps.statistics.typesystem.mps new file mode 100644 index 000000000..a558e8975 --- /dev/null +++ b/code/statistics/models/de.itemis.mps.statistics.typesystem.mps @@ -0,0 +1,11 @@ + + + + + + + + + + + From a7d37888fe41a0c152281d1d5a90af902f3b6eec Mon Sep 17 00:00:00 2001 From: Heiko Becker Date: Wed, 29 Nov 2023 07:21:00 +0100 Subject: [PATCH 2/8] Clean up code, whitelist MPS.ThirdParty --- .../de.itemis.mps.statistics.plugin.mps | 119 ++++++++---------- 1 file changed, 54 insertions(+), 65 deletions(-) diff --git a/code/statistics/models/de.itemis.mps.statistics.plugin.mps b/code/statistics/models/de.itemis.mps.statistics.plugin.mps index 789f5c33b..040f49a4d 100644 --- a/code/statistics/models/de.itemis.mps.statistics.plugin.mps +++ b/code/statistics/models/de.itemis.mps.statistics.plugin.mps @@ -121,6 +121,9 @@ + + + @@ -144,6 +147,7 @@ + @@ -162,9 +166,9 @@ - - - + + + @@ -218,7 +222,7 @@ - + @@ -262,8 +266,8 @@ - - + + @@ -376,10 +380,10 @@ - - - - + + + + @@ -483,33 +487,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -565,7 +542,7 @@ - + @@ -583,7 +560,7 @@ - + @@ -601,48 +578,60 @@ - + - - - - + + + + - - - - + + - - - - - + + + + + - - - - + + + + - - - + + + + + + + + + + + + + - - - - + + + + + + + + + - From 804478d5a3c9330304260488aab519534d49ca98 Mon Sep 17 00:00:00 2001 From: Heiko Becker Date: Wed, 29 Nov 2023 07:30:36 +0100 Subject: [PATCH 3/8] Add new language to build solution --- .../models/de.itemis.mps.extensions.build.mps | 104 ++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/code/build/solutions/de.itemis.mps.extensions.build/models/de.itemis.mps.extensions.build.mps b/code/build/solutions/de.itemis.mps.extensions.build/models/de.itemis.mps.extensions.build.mps index c24f02e57..b84336f3b 100644 --- a/code/build/solutions/de.itemis.mps.extensions.build/models/de.itemis.mps.extensions.build.mps +++ b/code/build/solutions/de.itemis.mps.extensions.build/models/de.itemis.mps.extensions.build.mps @@ -13794,6 +13794,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -14559,6 +14659,10 @@ + + + + From 9ebb30d65813dbc9ce6e046b5e5d578f21c57e9e Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Thu, 7 Dec 2023 17:45:10 +0100 Subject: [PATCH 4/8] Show a notification with the written path to the file dependencies.txt --- .../de.itemis.mps.statistics.plugin.mps | 44 ++++++++++++++++++- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/code/statistics/models/de.itemis.mps.statistics.plugin.mps b/code/statistics/models/de.itemis.mps.statistics.plugin.mps index 040f49a4d..045321ace 100644 --- a/code/statistics/models/de.itemis.mps.statistics.plugin.mps +++ b/code/statistics/models/de.itemis.mps.statistics.plugin.mps @@ -13,10 +13,13 @@ + + + @@ -79,6 +82,9 @@ + + + @@ -129,6 +135,7 @@ + @@ -339,7 +346,7 @@ - + @@ -404,7 +411,7 @@ - + @@ -485,6 +492,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -494,6 +529,11 @@ + + + + + From 05d597708bda276d3260c2514af17a31b15e69d8 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Thu, 7 Dec 2023 17:52:30 +0100 Subject: [PATCH 5/8] Make the code platform independent --- .../de.itemis.mps.statistics.plugin.mps | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/code/statistics/models/de.itemis.mps.statistics.plugin.mps b/code/statistics/models/de.itemis.mps.statistics.plugin.mps index 045321ace..21ab5d7ce 100644 --- a/code/statistics/models/de.itemis.mps.statistics.plugin.mps +++ b/code/statistics/models/de.itemis.mps.statistics.plugin.mps @@ -353,25 +353,18 @@ - - - - + + + + - - - - - - - - - - - - + + + + + From 82c6f64722713b0e0bf055b4c337a5c917244b09 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Thu, 7 Dec 2023 17:53:29 +0100 Subject: [PATCH 6/8] Show a notification when the file can't be created --- .../de.itemis.mps.statistics.plugin.mps | 36 +++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/code/statistics/models/de.itemis.mps.statistics.plugin.mps b/code/statistics/models/de.itemis.mps.statistics.plugin.mps index 21ab5d7ce..a14ffc4e1 100644 --- a/code/statistics/models/de.itemis.mps.statistics.plugin.mps +++ b/code/statistics/models/de.itemis.mps.statistics.plugin.mps @@ -172,12 +172,6 @@ - - - - - - @@ -380,10 +374,32 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + From ae214663233fe19c7a9e2fb371816735c7b2c4c8 Mon Sep 17 00:00:00 2001 From: Alexander Pann Date: Thu, 7 Dec 2023 17:57:45 +0100 Subject: [PATCH 7/8] Update the changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3947c5a0a..b5fe8152e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project are documented in this file. Format of the log is _loosely_ based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). The project does _not_ follow Semantic Versioning and the changes are documented in reverse chronological order, grouped by calendar month. +## Dezember 2023 + +### Added + +- A new language `de.itemis.mps.statistics` was added that adds a new menu `MPS Statistics` to the `Tools` menu. The containing action writes a file `dependencies.txt` to the root folder. It contains all the used dependencies of the current project. + ## November 2023 ### Changed From 85d3660d7f783bf27e11a1d8e4e023e0338b0a25 Mon Sep 17 00:00:00 2001 From: Heiko Becker Date: Tue, 12 Dec 2023 09:23:48 +0100 Subject: [PATCH 8/8] Minor rewording in notifications Use "couldn't" should only be used in spoken english. --- code/statistics/models/de.itemis.mps.statistics.plugin.mps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/statistics/models/de.itemis.mps.statistics.plugin.mps b/code/statistics/models/de.itemis.mps.statistics.plugin.mps index a14ffc4e1..31626f3d4 100644 --- a/code/statistics/models/de.itemis.mps.statistics.plugin.mps +++ b/code/statistics/models/de.itemis.mps.statistics.plugin.mps @@ -389,7 +389,7 @@ - +