Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Structural feature to access the values of a map
Structural feature to access the values of a map [message #1718270] Tue, 22 December 2015 02:08 Go to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
I have an EMap<String, Things> and I would like to bind the values of the map to a viewer. Is there a EStructuralFeature that gives me access to the values contained in the EMap?

Thanks

Pascal
Re: Structural feature to access the values of a map [message #1718277 is a reply to message #1718270] Tue, 22 December 2015 04:23 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Pascal,

There isn't a feature for the collection of values. That's just a view
of the overall EMap, i.e., org.eclipse.emf.common.util.EMap.values(),
and its the overall EMap that is accessed as a feature. But for each
entry in the EMap, there is a feature for the key and a feature for the
value, e.g.,
org.eclipse.emf.ecore.EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY__VALUE.


On 22/12/2015 3:08 AM, Pascal Rapicault wrote:
> I have an EMap<String, Things> and I would like to bind the values of
> the map to a viewer. Is there a EStructuralFeature that gives me
> access to the values contained in the EMap?
>
> Thanks
>
> Pascal


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Custom EMF Model Checker plugin to run headless
Next Topic:[CDO] Resource Transfer Framework - Registering Models
Goto Forum:
  


Current Time: Thu Apr 25 21:58:36 GMT 2024

Powered by FUDForum. Page generated in 0.02484 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top