X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2Fscl%2FReadComponentTypeInterfaceRequest.java;h=6ac607e4f3730b671d2a37289eea211efe1985a5;hp=a93cbe8d4237abc857aa5bbbaa742d6c9b2b7929;hb=e807368d0e75809e0797d9cea1063b046fabf352;hpb=9712014e959584157b02e594be8719c151b8f5b0 diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/ReadComponentTypeInterfaceRequest.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/ReadComponentTypeInterfaceRequest.java index a93cbe8d4..6ac607e4f 100644 --- a/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/ReadComponentTypeInterfaceRequest.java +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/scl/ReadComponentTypeInterfaceRequest.java @@ -2,6 +2,7 @@ package org.simantics.structural2.scl; import gnu.trove.map.hash.THashMap; +import java.util.Collections; import java.util.Map; import org.simantics.databoard.Bindings; @@ -50,11 +51,16 @@ public class ReadComponentTypeInterfaceRequest extends ResourceRead perform(ReadGraph graph) throws DatabaseException { - + if (resource == null) + return Collections.emptyMap(); + THashMap result = new THashMap(); - collect(graph, resource, result); + // TODO: For Antti to consider + // resource == null with procedural user components + if (resource != null) + collect(graph, resource, result); //for(Resource t : graph.getSupertypes(resource)) collect(graph, t, result); return result;