Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336676 - Please add singletonXXX methods to the ECollections utility class
Summary: Please add singletonXXX methods to the ECollections utility class
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-09 01:51 EST by Thomas Hallgren CLA
Modified: 2011-06-02 11:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.