Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [databinding] How to handle variable columns number
[databinding] How to handle variable columns number [message #331754] Fri, 19 September 2008 12:07 Go to next message
Nicolas Bihan is currently offline Nicolas Bihan
Messages: 49
Registered: July 2009
Member
Hello,

I would like to use JFace databinding to display/Edit a list of
translated keys.
My problem is I can get n languages.
Depending on the available translations my list can be :
---------------------------------
Key | default |
---------------------------------
message.hello | Bonjour |

or

----------------------------------------------------
Key | default | en |
----------------------------------------------------
message.hello | Bonjour | Hello


All the examples I saw are assuming that you know the model of the rows...

Any idea ?

Thx

Nicolas
Re: [databinding] How to handle variable columns number [message #331755 is a reply to message #331754] Fri, 19 September 2008 12:27 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5251
Registered: July 2009
Senior Member
Often requested but there's not solution to this currently. I think you
need a mediator between your real model and the databinding one.
Translating your column based model in a row based one.

Tom

Nicolas Bihan schrieb:
> Hello,
>
> I would like to use JFace databinding to display/Edit a list of
> translated keys.
> My problem is I can get n languages.
> Depending on the available translations my list can be :
> ---------------------------------
> Key | default |
> ---------------------------------
> message.hello | Bonjour |
>
> or
>
> ----------------------------------------------------
> Key | default | en |
> ----------------------------------------------------
> message.hello | Bonjour | Hello
>
>
> All the examples I saw are assuming that you know the model of the rows...
>
> Any idea ?
>
> Thx
>
> Nicolas


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: [databinding] How to handle variable columns number [message #331802 is a reply to message #331754] Tue, 23 September 2008 03:28 Go to previous message
Eclipse User
Originally posted by: sf.tragwerk-software.de

see bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=215504
Previous Topic:ConsoleManager#addConsoles automatically activates new consoles in all Console views
Next Topic:NewSearchUI API
Goto Forum:
  


Current Time: Mon Jul 28 14:36:57 EDT 2014

Powered by FUDForum. Page generated in 0.02395 seconds