Skip to main content


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 16:07 Go to next message
Nicolas Bihan is currently offline Nicolas BihanFriend
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 16:27 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 07:28 Go to previous message
Eclipse UserFriend
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: Thu Jul 25 20:59:27 GMT 2024

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

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

Back to the top