How to get enums per emf reflections? [message #1831803] |
Sun, 30 August 2020 08:12 |
Dimg Cim Messages: 59 Registered: December 2015 |
Member |
|
|
Hello all,
I am on imlementing a formular renderer based on a Emf class attributes. Currently the formular can find out all EAttributes and EReferences. My issue is eObject.eClass().getEAllAttributes() don't list me the enum attibutes. How can I access the enums?
EList<EAttribute> attributes = eObject.eClass().getEAllAttributes();
EList<EReference> eAllReferences = eObject.eClass().getEReferences();
for (EAttribute eAttribute : attributes) {
// Render attributes
}
for (EReference eReference : eAllReferences) {
// Render references
}
Are there something like eObject.eClass().getEEnums(); ?
Best regards
cim
--> Please close this thread the EAllAttributes() displayed all attributes of a class. I misunderstood that. Thanks.
[Updated on: Sun, 30 August 2020 08:22] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03645 seconds