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

Bug 336676

Summary: Please add singletonXXX methods to the ECollections utility class
Product: [Modeling] EMF Reporter: Thomas Hallgren <thomas>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Thomas Hallgren CLA 2011-02-09 01:51:08 EST
I very often use the Collections method singleton, singletonList, singletonMap methods. While converting some code into ecore objects, I found that there are no corresponding methods in the ECollections class. It would be great if those methods could be added.

While searching, I found a ModifiableSingeltonEList as an inner class in the ItemAdapterProvider. Perhaps that one could be moved out and be used in a singeltonEList() method?
Comment 1 Ed Merks CLA 2011-05-12 18:11:35 EDT
Support for singletonEList and singletonEMap have been committed to CVS for 2.7.
Comment 2 Ed Merks CLA 2011-06-02 11:40:16 EDT
The fix is available in 3.7RC3 and later.