From: Antti Villberg Date: Tue, 21 Jan 2020 23:09:30 +0000 (+0200) Subject: compile method in CompileProceduralComponentTypeRequest X-Git-Tag: v1.43.0~118^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=7013a85c61754523260d2d65e35fa88a28a853c9;p=simantics%2Fplatform.git compile method in CompileProceduralComponentTypeRequest gitlab #451 Change-Id: Ied7ad06acb2cc68c3f325d3dbb8614d3023d0e90 --- diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/procedural/CompileProceduralComponentTypeRequest.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/procedural/CompileProceduralComponentTypeRequest.java index 871dc1975..3a4801078 100644 --- a/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/procedural/CompileProceduralComponentTypeRequest.java +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/procedural/CompileProceduralComponentTypeRequest.java @@ -58,6 +58,10 @@ public class CompileProceduralComponentTypeRequest extends AbstractExpressionCom } } + public static Function1 compile(ReadGraph graph, Resource componentType) throws DatabaseException { + return graph.syncRequest(new CompileProceduralComponentTypeRequest(componentType), TransientCacheListener.instance()); + } + @Override protected String getExpressionText(ReadGraph graph) throws DatabaseException {