[Databinding] Use converter when binding to TableViewer [message #327788] |
Thu, 01 May 2008 15:00  |
Eclipse User |
|
|
|
Originally posted by: tskaufma.gmail.com
Hello,
I have a model which has java.util.Date objects and I've created a custom
converter for Date to String conversion.
I would like to use my converter with a TableViewer. I currently use the
ObservableListContentProvider and ObservableMapLabelProvider classes to fill
the TableViewer. Is there some easy way to attach the converter this setup?
If not, is there a per-column label provider for use with Databinding so I
only have to write a custom label provider for my Date columns?
Thanks,
Trevor Kaufman
|
|
|
|
|
Re: [Databinding] Use converter when binding to TableViewer [message #327800 is a reply to message #327798] |
Fri, 02 May 2008 06:22  |
Eclipse User |
|
|
|
http://publicsvn.bestsolution.at/repos/java/at.bestsolution. dataforms/trunk/src/at/bestsolution/dataforms/util/viewers/
Tom
Trevor Kaufman schrieb:
> Hello Tom,
>
> ColumnLabelProvider is a per column, yes, but there is no
> ObservableColumnLabelProvider that I can find.. and
> ObservableMapLabelProvider doesn't implement ColumnLabelProvider.
>
> If I switch to a per column system, I'd only want to write custom label
> providers for my Date columns and use an Obversable label provider for
> the other columns.
>
> Hope that clarifies my issue,
> Trevor Kaufman
>
> "Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
> news:fvd7bt$eln$1@build.eclipse.org...
>> Sure ColumnLabelProvider?
>>
>> Tom
>>
>> Trevor Kaufman schrieb:
>>> Hello,
>>>
>>> I have a model which has java.util.Date objects and I've created a
>>> custom converter for Date to String conversion.
>>>
>>> I would like to use my converter with a TableViewer. I currently use
>>> the ObservableListContentProvider and ObservableMapLabelProvider
>>> classes to fill the TableViewer. Is there some easy way to attach the
>>> converter this setup?
>>>
>>> If not, is there a per-column label provider for use with Databinding
>>> so I only have to write a custom label provider for my Date columns?
>>>
>>> Thanks,
>>> Trevor Kaufman
>>
>>
>> --
>> B e s t S o l u t i o n . at
>> ------------------------------------------------------------ --------
>> Tom Schindl JFace-Committer
>> ------------------------------------------------------------ --------
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Powered by
FUDForum. Page generated in 0.04110 seconds