From: Antti Villberg Date: Wed, 19 Feb 2020 11:06:53 +0000 (+0200) Subject: Templates for creating SCL values X-Git-Tag: v1.43.0~97^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F80%2F3880%2F1;p=simantics%2Fplatform.git Templates for creating SCL values gitlab #469 Change-Id: Ie3b684e106cba76cb70f238c885ef42487de0cfe --- diff --git a/bundles/org.simantics.layer0/graph/Layer0Values.pgraph b/bundles/org.simantics.layer0/graph/Layer0Values.pgraph index 14aa774e8..9ccac1051 100644 --- a/bundles/org.simantics.layer0/graph/Layer0Values.pgraph +++ b/bundles/org.simantics.layer0/graph/Layer0Values.pgraph @@ -42,6 +42,12 @@ L0.scl : L0.Template L0.SCLValue.expression %expression L0.HasValueType %valueType +L0.sclValue : L0.Template + @template %subject %expression %valueType + %subject : L0.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType %valueType + L0.sclAssertion : L0.Template @template %type %property %expression %valueType %type diff --git a/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph b/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph index e566026b1..dca29f9bf 100644 --- a/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph +++ b/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph @@ -325,6 +325,12 @@ MOD.scl : L0.Template L0.SCLValue.expression %expression L0.HasValueType %valueType +MOD.sclValue : L0.Template + @template %subject %expression %valueType + %subject : MOD.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType %valueType + MOD.sclAssertion : L0.Template @template %type %property %expression %valueType %type