| [news.eclipse.modeling.gmf] Re: [Templates] Couldn't find operation 'eContainer()' |
Hi, Alex,
cW
Hello Marc,
That's right - this class is an instance of EObject (in java world) but in EMF world it is not.I think it's not try Alex. According to the GMF documentation, InnerClassViewmap extends from Viewmap and Viewmap extends from EObject, and EObject has an eContainer() method. I don't underestand
EClass "Viewmap" defined in gmfgen.ecore has no ESuperTypes specified, so in EMF meta-information Viewmap is a class on top of hierarchy and is not sublcassing EObject.. Xpand is using EMF meta-information to locate appropriate attributes/methods, so this is a reason why corresponding operation was not found (i know that it actually present in an underlying java object..)
----------------- Alex Shatalin