X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ontology%2Fgraph%2FModelingViewpoint.pgraph;h=0255339ac7bda279053ca6e30b98d744f2362ac2;hb=596709570dae626a884ddfe0341af98c80241e82;hp=7e572df9f69e3aeb385fe98b5f4034bfaa0bd08d;hpb=277ddb17bc33a7c0b5c352f80bbc2605acaee50d;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph b/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph index 7e572df9f..0255339ac 100644 --- a/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph +++ b/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph @@ -20,7 +20,7 @@ MOD.Contributions : L0.Library MOD.SCLChildRule -- MOD.SCLChildRule.getChildren ==> "Resource -> [Resource]" -- MOD.SCLLabelRule.getLabels ==> "Resource -> [String]" MOD.SCLDropAction.action ==> "Resource -> Dynamic -> Integer -> ()" MOD.SCLTest.test ==> "Resource -> Boolean" [Resource]" + +MOD.sclLabelRule : L0.Template + @template %action %expression + %action : MOD.SCLLabelRule + MOD.SCLLabelRule.getLabels _ : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType "Resource -> [String]" + MOD.sclAction : L0.Template @template %action %expression %action : MOD.SCLAction @@ -659,6 +673,15 @@ MOD.InstantiateUnder -- MOD.InstanceOfTest.HasType --> L0.Type Boolean" + +MOD.instanceOfTest : L0.Template + @template %test %type + %test : MOD.InstanceOfTest + MOD.InstanceOfTest.HasType %type + TESTS = MAC.Tests : L0.Library TESTS.IsNotPublished @MOD.sclTest "isNotPublished"