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=c838c0a3648850a5fbb0793844e664577cd4fc07;hpb=f6e8b2391fa7b6dfdd2cf8dd2b8bbe5750c57c70;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 c838c0a36..0255339ac 100644 --- a/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph +++ b/bundles/org.simantics.modeling.ontology/graph/ModelingViewpoint.pgraph @@ -20,13 +20,16 @@ MOD.Contributions : L0.Library MOD.SCLChildRule -- MOD.SCLChildRule.getChildren ==> "Resource -> [Resource]" -- MOD.SCLLabelRule.getLabels ==> "Resource -> [String]" MOD.SCLAction.action ==> "Resource -> ()" 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 @@ -369,6 +386,13 @@ MOD.sclAction : L0.Template L0.SCLValue.expression %expression L0.HasValueType "Resource -> ()" +MOD.sclDropAction : L0.Template + @template %action %expression + %action : MOD.SCLDropAction + MOD.SCLDropAction.action _ : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType "Resource -> Dynamic -> Integer -> ()" + MOD.sclTest : L0.Template @template %subject %expression %subject : MOD.SCLTest @@ -642,6 +666,22 @@ ACTIONS.NavigateToSubstructure ACTIONS.NewProceduralComponentType : ACT.Action ACTIONS.NewComponentType : ACT.Action +MOD.InstantiateUnder -- MOD.InstantiateUnder.HasType --> L0.Type ()" + +ACTIONS.InstantiateUnder + @MOD.sclAction "instantiateUnderAction self" + +MOD.InstanceOfTest -- 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"