From 5746bbb0639d0bd6d4f765585e516d1bf5023745 Mon Sep 17 00:00:00 2001 From: Sebastian Zarnekow Date: Wed, 12 Aug 2015 20:34:31 +0200 Subject: [PATCH] [263773] Fixed NodeModelUtils and XtextProposalProvider --- .../src/org/eclipse/xtext/nodemodel/util/NodeModelUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/org.eclipse.xtext/src/org/eclipse/xtext/nodemodel/util/NodeModelUtils.java b/plugins/org.eclipse.xtext/src/org/eclipse/xtext/nodemodel/util/NodeModelUtils.java index 9b424eb5d..80000b15d 100644 --- a/plugins/org.eclipse.xtext/src/org/eclipse/xtext/nodemodel/util/NodeModelUtils.java +++ b/plugins/org.eclipse.xtext/src/org/eclipse/xtext/nodemodel/util/NodeModelUtils.java @@ -242,7 +242,7 @@ public class NodeModelUtils { if (parent.hasDirectSemanticElement()) return findActualSemanticObjectFor(parent); INode sibling = parent.getFirstChild(); - while(sibling != node) { + while(!sibling.equals(node)) { EObject siblingGrammarElement = sibling.getGrammarElement(); if (siblingGrammarElement != null && GrammarUtil.containingAssignment(siblingGrammarElement) == null) { if (GrammarUtil.isEObjectRuleCall(siblingGrammarElement)) {