Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 383755 - New ModelelementId Generator extension point for e.g. deterministic ids.
Summary: New ModelelementId Generator extension point for e.g. deterministic ids.
Status: CLOSED FIXED
Alias: None
Product: EMFStore
Classification: Modeling
Component: Common (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 05:50 EDT by Julian Sommerfeldt CLA
Modified: 2012-06-29 08:28 EDT (History)
1 user (show)

See Also:


Attachments
Git-patch containing the code concerning the modelelement id generator extension point (15.04 KB, patch)
2012-06-28 05:50 EDT, Julian Sommerfeldt CLA
emueller: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Sommerfeldt CLA 2012-06-28 05:50:30 EDT
Created attachment 217999 [details]
Git-patch containing the code concerning the modelelement id generator extension point

Introduced a new extension point where plugins can register a ModelElementIdGenerator which is used to generate the ids in the IdEObjectCollection.
For instance this is useful if you want to have deterministic ids (e.g. in testing) as the generation is based on UUIDs at the moment. In addition to guarantee that the modelelements always have the same order, all relevant Sets and Maps are changed to LinkedSets and LinkedHashMaps.
Comment 1 Edgar Mueller CLA 2012-06-29 08:28:06 EDT
Patch has been reviewed and applied. Thanks for the contribution!