]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.layer0/graph/Layer0Templates.pgraph
Define actions already in L0
[simantics/platform.git] / bundles / org.simantics.layer0 / graph / Layer0Templates.pgraph
index 74bff5f40d84e814a87eaf647273263e415b9202..0dbba3181589a58260003ff062c3e4da753ee895 100644 (file)
@@ -40,4 +40,13 @@ L0.tag : L0.Template
         %resource %tag %resource
 L0.defTag : L0.Template
     @template %resource
-        %resource <R L0.IsWeaklyRelatedTo : L0.Tag                
\ No newline at end of file
+        %resource <R L0.IsWeaklyRelatedTo : L0.Tag
+
+L0.SCLAction.valueType = "Resource -> <Proc> ()" : L0.String
+
+L0.sclAction : L0.Template
+    @template %action %expression
+        %action : L0.SCLAction
+          L0.SCLAction.action _ : L0.SCLValue
+            L0.SCLValue.expression %expression
+            L0.HasValueType L0.SCLAction.valueType