Skip to content

Commit c8fea16

Browse files
HannesWellakurtakov
authored andcommitted
[FIXUP] Only support containmeints?!
1 parent 9c19812 commit c8fea16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/internal/java/JavaXPathFactoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public int getLength() {
294294
}
295295

296296
private Stream<EReference> availableReferences(EClass eClass) {
297-
return eClass.getEAllReferences().stream().filter(eObject::eIsSet);
297+
return eClass.getEAllReferences().stream().filter(r -> r.isContainment()).filter(eObject::eIsSet);
298298
}
299299

300300
private Stream<Element> createReferenceNodes(EReference ref) {

0 commit comments

Comments
 (0)