From 73437f57944bc3e838daa14099e1f10a6df444b7 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Fri, 14 Dec 2018 15:32:44 +0200 Subject: [PATCH] Added L0.typeResource SCL type to SCLTypeUtils to prevent warning prints gitlab #83 Change-Id: I811959a6ef16fa57710b67aea2f454cef1cf2206 (cherry picked from commit 1f6e700b53b8be20d7048aaeb3621be1dcd9ffd8) --- .../src/org/simantics/modeling/SCLTypeUtils.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLTypeUtils.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLTypeUtils.java index d0a777caa..27955fb7e 100644 --- a/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLTypeUtils.java +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLTypeUtils.java @@ -58,7 +58,13 @@ public class SCLTypeUtils { TYPE_MAP.put("Vector Double", Types.vector(Types.DOUBLE)); TYPE_MAP.put("Vector String", Types.vector(Types.STRING)); TYPE_MAP.put("ByteArray", Types.BYTE_ARRAY); - + + // #83: L0.typeResource + TCon variable = Types.con("Simantics/Variables", "Variable"); + add(variable); + TYPE_MAP.put("Variable -> Resource -> Resource", + Types.functionE(new Type[] {variable, Types.RESOURCE}, Types.READ_GRAPH, Types.RESOURCE)); + add((TCon)Types.RESOURCE); add(Types.con("Simantics/GUID", "GUID")); // L0.GUID add(Types.con("Simantics/Variables", "StructuredProperty")); // L0.methods -- 2.47.1