[Databinding] Use converter when binding to TableViewer [message #327788] |
Thu, 01 May 2008 19: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 #327798 is a reply to message #327791] |
Thu, 01 May 2008 22:26 |
Eclipse User |
|
|
|
Originally posted by: tskaufma.gmail.com
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
> ------------------------------------------------------------ --------
|
|
|
|
Powered by
FUDForum. Page generated in 0.02855 seconds