]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/scl/SCLUtil.java
Equipment/Component library customization requires proper preloading.
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / scl / SCLUtil.java
index ae6bac4baeff7716b0795d16ceb8b780b2e6a88c..8418ae4d2c19d3f198e56e3e743cb76dde1a4b2b 100644 (file)
@@ -9,6 +9,7 @@ import org.simantics.db.request.Read;
 import org.simantics.objmap.graph.IMapping;
 import org.simantics.objmap.graph.Mappings;
 import org.simantics.objmap.graph.schema.IMappingSchema;
+import org.simantics.plant3d.ontology.Plant3D;
 import org.simantics.plant3d.scenegraph.P3DRootNode;
 import org.simantics.plant3d.scenegraph.SchemaBuilder;
 import org.simantics.plant3d.scenegraph.controlpoint.ControlPointFactory;
@@ -20,7 +21,7 @@ public class SCLUtil {
        
        public static P3DScriptNodeMap load(final Resource root) throws DatabaseException {
                try {
-                       ControlPointFactory.preloadCache();
+                       ControlPointFactory.preloadCache(Plant3D.URIs.Builtin);
                        ComponentUtils.preloadCache();
                } catch (Exception e) {
                        throw new DatabaseException(e);
@@ -47,7 +48,7 @@ public class SCLUtil {
        
        public static P3DRootNode loadReadOnly(final Resource root) throws DatabaseException {
                try {
-                       ControlPointFactory.preloadCache();
+                       ControlPointFactory.preloadCache(Plant3D.URIs.Builtin);
                        ComponentUtils.preloadCache();
                } catch (Exception e) {
                        throw new DatabaseException(e);