]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
compile method in CompileProceduralComponentTypeRequest 07/3807/1
authorAntti Villberg <antti.villberg@semantum.fi>
Tue, 21 Jan 2020 23:09:30 +0000 (01:09 +0200)
committerAntti Villberg <antti.villberg@semantum.fi>
Tue, 21 Jan 2020 23:09:30 +0000 (01:09 +0200)
gitlab #451

Change-Id: Ied7ad06acb2cc68c3f325d3dbb8614d3023d0e90

bundles/org.simantics.structural2/src/org/simantics/structural2/scl/procedural/CompileProceduralComponentTypeRequest.java

index 871dc1975c7a70295ced2b5cf800e51cf0496429..3a4801078664ae5539556436bbb1664f936cb828 100644 (file)
@@ -58,6 +58,10 @@ public class CompileProceduralComponentTypeRequest extends AbstractExpressionCom
         }
     }
 
+    public static Function1<Variable, Object> compile(ReadGraph graph, Resource componentType) throws DatabaseException {
+        return graph.syncRequest(new CompileProceduralComponentTypeRequest(componentType), TransientCacheListener.instance());
+    }
+    
     @Override
     protected String getExpressionText(ReadGraph graph)
             throws DatabaseException {