Getting StructuralFeatures even from superclass? [message #717745] |
Mon, 22 August 2011 04:39  |
Eclipse User |
|
|
|
Hi guys,
currently I'm struggling with a problem created by the Xtext feature, that takes similar attributes to the superclass.
Lets say I have the types
GeneralConversion:
LinearConversion | VerbalConversion
and both start with
.
So far so good. But now I want to access all EStructuralFeatures with eObj.eClass().getEStructuralFeatures() (eObj being of type LinearConversion or VerbalConversion, GeneralConversion is used only as a reference in another part of the grammar).
Now I can't access the name attribute anymore, cause it resides in the GeneralConversion class.
Is there any way to get this attribute too, without changing the grammar?
Thanks a lot!
Best,
Daniel
|
|
|
|
|
(no subject) [message #717765 is a reply to message #717757] |
Mon, 22 August 2011 05:27  |
Eclipse User |
|
|
|
Originally posted by: Koen Yskout
getEAllStructuralFeatures is probably even easier for what you need :)
On 22/08/11 11:05, Daniel Trierweiler wrote:
> Thanks a lot Christian.
> I used getESuperTypes without success, but getEAllSuperTypes does the
> trick :)
|
|
|
Powered by
FUDForum. Page generated in 0.03822 seconds