From 7013a85c61754523260d2d65e35fa88a28a853c9 Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Wed, 22 Jan 2020 01:09:30 +0200 Subject: [PATCH] compile method in CompileProceduralComponentTypeRequest gitlab #451 Change-Id: Ied7ad06acb2cc68c3f325d3dbb8614d3023d0e90 --- .../scl/procedural/CompileProceduralComponentTypeRequest.java | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- 2.47.1