Reduce the number of Adapters created in EMF databinding [message #1316785] |
Sat, 26 April 2014 14:53  |
Eclipse User |
|
|
|
Hi,
I have started looking into detail to the EMF databinding framework. It is quite good, although i have one question.
If i have an EObject with 4 EAttributes i would like to make a binding to Text. I always end up with 4 new Adapters added to the EObject. In othe words, i end up with one new adapter added to the EObject per attribute i am binding.
I was wondering if there is currently a way to create those 4 binding but to have only one Adapter added to the EObject?
Thanks in advance,
Javi
|
|
|
Re: Reduce the number of Adapters created in EMF databinding [message #1316835 is a reply to message #1316785] |
Sat, 26 April 2014 15:34   |
Eclipse User |
|
|
|
The current implementation of, for example, EObjectObservableValue does not check for any previously added adapters, so, this would be a task you have to do yourself.
What issue are you trying to resolve? Do you have any 'performance problems' or any 'excessive memory consumption" because of this?
Xavipen Mising name wrote on Sat, 26 April 2014 20:53Hi,
I have started looking into detail to the EMF databinding framework. It is quite good, although i have one question.
If i have an EObject with 4 EAttributes i would like to make a binding to Text. I always end up with 4 new Adapters added to the EObject. In othe words, i end up with one new adapter added to the EObject per attribute i am binding.
I was wondering if there is currently a way to create those 4 binding but to have only one Adapter added to the EObject?
Thanks in advance,
Javi
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06398 seconds