From b7de6cac8cc67d2e9355f700ea813c7ed0d75bd4 Mon Sep 17 00:00:00 2001 From: Reino Ruusu Date: Fri, 25 Oct 2019 17:42:56 +0300 Subject: [PATCH] Add calls to finalizeDBLoad2 into SCLUtil method. gitlab #35 Change-Id: Iec99d89eb06d3dbfc9ff9b7e5926b945db22840c --- .../src/org/simantics/plant3d/scl/SCLUtil.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scl/SCLUtil.java b/org.simantics.plant3d/src/org/simantics/plant3d/scl/SCLUtil.java index ae6bac4b..a27e76f2 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scl/SCLUtil.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scl/SCLUtil.java @@ -30,10 +30,12 @@ public class SCLUtil { public P3DScriptNodeMap perform(ReadGraph graph) throws DatabaseException { PipingRules.setEnabled(false); IMappingSchema schema = SchemaBuilder.getSchema(graph); - IMapping mapping = Mappings.createWithListening(schema); + IMapping mapping = Mappings.createWithListening(schema); P3DRootNode rootNode = (P3DRootNode)mapping.map(graph, root); try { P3DUtil.finalizeDBLoad(rootNode); + // FIXME: Something needs to be done here... + P3DUtil.finalizeDBLoad2(rootNode); } catch (Exception e) { throw new DatabaseException(e); } @@ -57,10 +59,11 @@ public class SCLUtil { public P3DRootNode perform(ReadGraph graph) throws DatabaseException { PipingRules.setEnabled(false); IMappingSchema schema = SchemaBuilder.getSchema(graph); - IMapping mapping = Mappings.createWithoutListening(schema); + IMapping mapping = Mappings.createWithoutListening(schema); P3DRootNode rootNode = (P3DRootNode)mapping.map(graph, root); try { P3DUtil.finalizeDBLoad(rootNode); + P3DUtil.finalizeDBLoad2(rootNode); } catch (Exception e) { throw new DatabaseException(e); } -- 2.45.2