Enumerator to EEnum navigation [message #1001930] |
Thu, 17 January 2013 10:20  |
Eclipse User |
|
|
|
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
|
|
|
|
|
Re: Enumerator to EEnum navigation [message #1002341 is a reply to message #1002336] |
Fri, 18 January 2013 07:31  |
Eclipse User |
|
|
|
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
>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03987 seconds