X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2Fscl%2FReadComponentTypeInterfaceRequest.java;fp=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2Fscl%2FReadComponentTypeInterfaceRequest.java;h=6ac607e4f3730b671d2a37289eea211efe1985a5;hb=05e139afecb430ed0c2e70e264f5a9a38a220c19;hp=a93cbe8d4237abc857aa5bbbaa742d6c9b2b7929;hpb=4aa15c31ccd0d91cfdfbc9d63eca79e9045cc337;p=simantics%2Fplatform.git 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;