Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327318

Summary: Provide an optimized mechanism to determine an EEnumLiteral from an Enumerator value instance
Product: [Modeling] EMF Reporter: Eike Stepper <stepper>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: Lighter, Faster and Better
Attachments:
Description Flags
Patch v1 - for future reference none

Description Eike Stepper CLA 2010-10-08 05:26:34 EDT
For a given Enumerator value like Vat.VAT15 it is not easily possible to determine the associated EEnumLiteral in the meta model.

CDOPackageRegistry should lazily populate a cache for Enumerator-->EEnumLiteral mappings.
Comment 1 Eike Stepper CLA 2010-10-08 05:27:56 EDT
Created attachment 180479 [details]
Patch v1 - for future reference
Comment 2 Eike Stepper CLA 2010-10-08 05:28:15 EDT
Committed to HEAD
Comment 3 Eike Stepper CLA 2010-10-08 08:05:35 EDT
See  CDOPackageRegistry:

 /**
   * @since 4.0
   */
  public EEnumLiteral getEnumLiteralFor(Enumerator value);
Comment 4 Eike Stepper CLA 2011-06-23 03:39:23 EDT
Available in R20110608-1407