Skip to content
Snippets Groups Projects
Commit 04073959 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

RED

refs 2490
parent a70b4ca7
No related branches found
No related tags found
No related merge requests found
......@@ -430,6 +430,7 @@ public class EcoreUtils {
* depth(modelElement)}.
*/
public static EObject getModelElementAncestor(EObject o, int levelsUp) {
// FIXME (FH): this method never returns null (as stated in the comment)
while(o.eContainer() != null && levelsUp > 0) {
o = o.eContainer();
levelsUp--;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment