public Collection<Resource> find(ReadGraph graph, Resource index, String filter) throws DatabaseException {\r
CollectionSupport coll = graph.getService(CollectionSupport.class);\r
\r
- List<Resource> rec = findRec(graph, index, filter, new THashSet<Resource>());\r
+ THashSet<Resource> visited = new THashSet<>();\r
+ List<Resource> rec = findRec(graph, index, filter, visited);\r
for(Resource global : Layer0Utils.listGlobalOntologies(graph)) {\r
+ if (!visited.add(global)) continue;\r
List<Resource> rs = graph.syncRequest(new QueryIndex(global, type, filter), TransientCacheListener.<List<Resource>>instance());\r
if(rec.isEmpty() && !rs.isEmpty()) {\r
// TODO: rec could be an immutable empty list\r
Bundle-SymbolicName: org.simantics.tests.modelled
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: org.simantics.tests.modelled.Activator
-Require-Bundle: org.eclipse.core.runtime,
- org.simantics.db,
- org.simantics.db.common,
- org.simantics.tests.modelled.ontology,
+Require-Bundle: org.simantics.tests.modelled.ontology,
org.simantics.scl.osgi,
org.simantics,
- org.simantics.scl.compiler,
org.junit,
- org.simantics.db.testing,
org.simantics.modeling;bundle-version="1.1.1"
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy