Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » add Adapter to List(no .eAdapters() on EList?)
add Adapter to List [message #974844] Wed, 07 November 2012 11:28 Go to next message
Ludwig Moser is currently offline Ludwig Moser
Messages: 342
Registered: July 2009
Senior Member
i've created an EMF-Diagram (see attachment) and i try to add an Adapter to the list in my DataCollection.class

when i try to add an Adapter to the list (as to every other EObject i fail, as my IDE tells me there is no .eAdapters() function on the EList

i remember that i already did an example using a list, so it IS possible.

can you help me and point me my mistake?

thanks in advance
Re: add Adapter to List [message #974886 is a reply to message #974844] Wed, 07 November 2012 12:09 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5344
Registered: July 2009
Senior Member
You are not adding the adapter to the List but to the EObject containing
the list.

Tom

Am 07.11.12 12:28, schrieb Ludwig Moser:
> i've created an EMF-Diagram (see attachment) and i try to add an Adapter to the list in my DataCollection.class
>
> when i try to add an Adapter to the list (as to every other EObject i fail, as my IDE tells me there is no .eAdapters() function on the EList
>
> i remember that i already did an example using a list, so it IS possible.
>
> can you help me and point me my mistake?
>
> thanks in advance
>
Re: add Adapter to List [message #975986 is a reply to message #974886] Thu, 08 November 2012 08:20 Go to previous message
Ludwig Moser is currently offline Ludwig Moser
Messages: 342
Registered: July 2009
Senior Member
thanks!
strange... its working fine if you do it right Wink
Previous Topic:Missing EMF Editor features in Indigo JEE Package
Next Topic:[CDO] SSL Server [ERROR] BufferUnderflowException
Goto Forum:
  


Current Time: Tue Sep 30 16:04:41 GMT 2014

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

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