From a8e03848f9904872061f3cfc4a18cb024ff66e6e Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Thu, 14 Sep 2023 23:13:20 +0200 Subject: [PATCH] [FIXUP] Only support containmeints?! --- .../e4/emf/xpath/internal/java/JavaXPathFactoryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/internal/java/JavaXPathFactoryImpl.java b/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/internal/java/JavaXPathFactoryImpl.java index 091e2718681..e5a246caff6 100644 --- a/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/internal/java/JavaXPathFactoryImpl.java +++ b/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/internal/java/JavaXPathFactoryImpl.java @@ -294,7 +294,7 @@ public int getLength() { } private Stream availableReferences(EClass eClass) { - return eClass.getEAllReferences().stream().filter(eObject::eIsSet); + return eClass.getEAllReferences().stream().filter(r -> r.isContainment()).filter(eObject::eIsSet); } private Stream createReferenceNodes(EReference ref) {