How to obtain the IEObjectDescription from an EObject? [message #638429] |
Thu, 11 November 2010 09:51 |
F. Alexander Njemz Messages: 20 Registered: July 2010 |
Junior Member |
|
|
Hi,
is there a way to get the IEObjectDescription if all you have is the EObject?
What I'm trying to do, is to ``typecheck'' files conforming to my grammar. However
there are situations, where the Object of which I want to determine the type is an unresolved proxy.
ECoreUtil2.resolve seems to not work when I pass the EObject of the unresolved proxy to it.
In a different part of my project I'm successfully able to resolve proxies by calling getEObjectOrProxy on the IEObjectDescription and then resolving with ECoreUtils2.
Any help is appreciated.
EDIT: I got to thinking. During validation I probably shouldn't have to deal with unresolved proxies. The scoping needs fixing, I guess. Is this correct?
Kind regards,
Alexander
[Updated on: Thu, 11 November 2010 10:54] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03364 seconds