| [news.eclipse.modeling.gmt] Re: [Epsilon] top-level container in EOL |
Hi Kimon,
operation Any topEContainer() {
if (self.eContainer().isDefined()) {
return self.eContainer().topEContainer();
}
else {
return self;
}
}Cheers, Dimitris
Hello,
I was wondering whether there is a built-in operation to find the top-lever container of a model element.
E.g.
A contains B contains C contains D
is there a method that allows me to find the top-level container, which in that case would be container A?
Thank you in advance, Kimon