|
|
|
Re: Enumerator to EEnum navigation [message #1002341 is a reply to message #1002336] |
Fri, 18 January 2013 12:31 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Ed,
For generated models, the generated enum's enum literals won't be
instances of EEnumLiteral.
On 18/01/2013 1:21 PM, Ed Willink wrote:
> Hi
>
> Thanks. But I think it was a stupid question. I cannot reproduce the
> case of an Enumerator that is not an EEnumLiteral now.
>
> Regards
>
> Ed Willink
>
> On 18/01/2013 08:14, Ed Merks wrote:
>> Ed,
>>
>> No, it's much like trying to find an EClass given only a Java Class.
>> Given there could be EClass/EDataType wrappers, the answer isn't even
>> necessarily unique.
>>
>>
>> On 17/01/2013 4:20 PM, Ed Willink wrote:
>>> Hi
>>>
>>> Is there an easy way to navigate from an
>>> org.eclipse.emf.common.util.Enumerator to its 'parent' EEnum?
>>>
>>> I can only see a tedious approach involving a name match between the
>>> Java class name and some cache/registry of known EEnums.
>>>
>>> Regards
>>>
>>> Ed Willink
>>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03273 seconds