XWT + DataBinding +HashMap [message #505065] |
Sat, 26 December 2009 00:42  |
Eclipse User |
|
|
|
If a HashMap is passed as the DataContext, how can it be declared in XWT
using databinding ?
Thanks
- Walter G. Prabhakar.
|
|
|
|
|
|
|
|
Re: XWT + DataBinding +HashMap [message #566551 is a reply to message #505065] |
Sat, 26 December 2009 02:13  |
Eclipse User |
|
|
|
I solved this through the use of dynamic emf, i.e. map all Map's keys to a dynamic emf object feature and use the emf data binding.
Though, there are many more use cases where a map-like structure could be used as data context, thus, a data provider for those structures would be very handy as well.
|
|
|
Re: XWT + DataBinding +HashMap [message #566600 is a reply to message #505065] |
Fri, 25 December 2009 18:22  |
Eclipse User |
|
|
|
Could you give your usecase? I'd like to know what you want to do with a Map
in UI. If you use it as a dynamic object, as said Erdal, you need a specific
data provider. There is an example in our test project under the package
org.eclipse.e4.xwt.tests.databinding.dataprovider.custom.
Best regards
Yves YANG
"Walter Prabhakar" <kwchess@gmail.com> wrote in message
news:hh47nm$7ho$1@build.eclipse.org...
> If a HashMap is passed as the DataContext, how can it be declared in XWT
> using databinding ?
>
>
> Thanks
> - Walter G. Prabhakar.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05934 seconds