Skip to content

Commit

Permalink
safety.rcp: enabled the actionsfilter plugin to filter out irrelevant…
Browse files Browse the repository at this point in the history
… menus for FASTEN

build.gradle: enable installation of actionsfilter into MPS\plugins directory
  • Loading branch information
danielratiu committed Jan 2, 2024
1 parent 9ede04d commit 8d2fbfc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
15 changes: 14 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,26 @@ tasks {
destination = file("code/languages/com.mbeddr.formal.nusmv/.mps/libraries.xml")
}

// "com.fasten.safety.rcp.pluginSolution" makes use of the mbeddr actionsfilter plugin.
// The "actionsfilter" plugin and dependencies must be copied to "MPS\plugins" folder in order to load properly.
val copy_mbeddr_actionsfilter by registering(Copy::class) {
dependsOn(resolveLanguageLibs)
description="Installs 'com.mbeddr.mpsutil.actionsfilter' plugin and its dependencies into 'MPS\\plugins' directory."
from("$dependenciesDir/com.mbeddr.platform")
include("com.mbeddr.mpsutil.actionsfilter/",
"de.itemis.mps.editor.widgets/",
"de.slisson.mps.hacks/",
"de.itemis.mps.tooltips/")
into("$mpsHomeDir/plugins")
}

val setup by registering {
dependsOn(generateLibrariesXml)
description = "Set up MPS project libraries. Libraries are read in from projectlibraries.properties file."
}

val build_allScripts by registering(BuildLanguages::class) {
dependsOn(resolveMps, resolveLanguageLibs)
dependsOn(resolveMps, resolveLanguageLibs, copy_mbeddr_actionsfilter)
script = "$buildDir/scripts/build_all_scripts.xml"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<use id="1f1b4a81-113d-4b88-9b67-2bae3e4f8128" name="com.mbeddr.mpsutil.projectview" version="1" />
<use id="28f9e497-3b42-4291-aeba-0a1039153ab1" name="jetbrains.mps.lang.plugin" version="5" />
<use id="ef7bf5ac-d06c-4342-b11d-e42104eb9343" name="jetbrains.mps.lang.plugin.standalone" version="0" />
<use id="c38abce1-4c09-44cb-9ebf-2a764e824bb5" name="com.mbeddr.mpsutil.actionsfilter" version="-1" />
<devkit ref="fbc25dd2-5da4-483a-8b19-70928e1b62d7(jetbrains.mps.devkit.general-purpose)" />
</languages>
<imports>
Expand Down Expand Up @@ -220,6 +221,15 @@
<property id="1863527487545993577" name="moduleName" index="1XxBO9" />
</concept>
</language>
<language id="c38abce1-4c09-44cb-9ebf-2a764e824bb5" name="com.mbeddr.mpsutil.actionsfilter">
<concept id="6552539437647632793" name="com.mbeddr.mpsutil.actionsfilter.structure.RemoveAction" flags="ng" index="2flH9Z">
<property id="6552539437647632800" name="actionId" index="2flH96" />
</concept>
<concept id="6552539437647632745" name="com.mbeddr.mpsutil.actionsfilter.structure.ActionsProfile" flags="ng" index="2flHaf">
<property id="3224768364827527719" name="isActiveByDefault" index="CHIup" />
<child id="6552539437647632794" name="actions" index="2flH9W" />
</concept>
</language>
<language id="7866978e-a0f0-4cc7-81bc-4d213d9375e1" name="jetbrains.mps.lang.smodel">
<concept id="1177026924588" name="jetbrains.mps.lang.smodel.structure.RefConcept_Reference" flags="nn" index="chp4Y">
<reference id="1177026940964" name="conceptDeclaration" index="cht4Q" />
Expand Down Expand Up @@ -1436,5 +1446,24 @@
</node>
</node>
</node>
<node concept="2flHaf" id="2ToO$l33Glv">
<property role="TrG5h" value="FASTEN Actions Filter" />
<property role="CHIup" value="true" />
<node concept="2flH9Z" id="bdFrIOrRyq" role="2flH9W">
<property role="2flH96" value="com.mbeddr.core.base.pluginSolution.plugin.CreateMbeddrModel_Action" />
</node>
<node concept="2flH9Z" id="1NDILsSDAoK" role="2flH9W">
<property role="2flH96" value="com.mbeddr.core.base.pluginSolution.plugin.CreateMbeddrRoots_ActionGroup" />
</node>
<node concept="2flH9Z" id="bdFrIOrRys" role="2flH9W">
<property role="2flH96" value="jetbrains.mps.ide.actions.NewModel_Action" />
</node>
<node concept="2flH9Z" id="bdFrIOrRyv" role="2flH9W">
<property role="2flH96" value="jetbrains.mps.ide.actions.NewSubModel_Action" />
</node>
<node concept="2flH9Z" id="2ToO$l38whw" role="2flH9W">
<property role="2flH96" value="jetbrains.mps.ide.actions.NewSubTestModel_Action" />
</node>
</node>
</model>

Original file line number Diff line number Diff line change
Expand Up @@ -14116,6 +14116,9 @@
<node concept="3_I8Xc" id="5cnt3YQuwM1" role="39821P">
<ref role="3_I8Xa" to="al5i:48qh2gYgI9M" resolve="codereview" />
</node>
<node concept="3_I8Xc" id="2ToO$l34Xke" role="39821P">
<ref role="3_I8Xa" to="al5i:7L_Y3n_fcDJ" resolve="com.mbeddr.mpsutil.actionsfilter" />
</node>
<node concept="3_I8Xc" id="5cnt3YQuwTZ" role="39821P">
<ref role="3_I8Xa" to="al5i:5fGcQI94qmQ" resolve="com.mbeddr.mpsutil.common" />
</node>
Expand Down

0 comments on commit 8d2fbfc

Please sign in to comment.