|
|
Re: Grid and StyledCellLabelProvider [message #62752 is a reply to message #62704] |
Tue, 17 February 2009 13:31 |
Christian Hauser Messages: 189 Registered: July 2009 |
Senior Member |
|
|
Hi Tom
I'm using a StyledCellLabelProvider, which is not a
IStyledLabelProvider, but thank you anyway. I think I can handle it now,
well, I'll have a look at it and try to adapt it somehow.
Thank you for your help and time!
Christian
Tom Schindl wrote:
> Hi,
>
> No. We don't support this but it should quite easy for you to implement
> a CellRenderer which uses a StyledString and renderer it.
>
> Attached to this mail you'll find a completely untested (I only wrote
> the code renderer) class but you should get the idea. Always remember
> when using the Grid you are in the position of drawing everything
> yourself and you are not restricted to the bounds of the native widget.
>
> Tom
>
> Christian Hauser schrieb:
>
>> Hi all,
>>
>> I've been using a normal JFace TableViewer for an editable table.
>> However, I had to switch to GridTableViewer, because the customer needs
>> wrapping of the text within cells.
>>
>> The problem I'm facing now is that my StyledCellLabelProvider that
>> highlights text is not working with Grid. Am I missing something or is
>> this rather new feature (Eclipse 3.4) not yet supported on Grid?
>>
>> Thanks in advance for any help,
>> Christian
>>
>
>
>
|
|
|
|
Re: Grid and StyledCellLabelProvider [message #593652 is a reply to message #62704] |
Tue, 17 February 2009 13:31 |
Christian Hauser Messages: 189 Registered: July 2009 |
Senior Member |
|
|
Hi Tom
I'm using a StyledCellLabelProvider, which is not a
IStyledLabelProvider, but thank you anyway. I think I can handle it now,
well, I'll have a look at it and try to adapt it somehow.
Thank you for your help and time!
Christian
Tom Schindl wrote:
> Hi,
>
> No. We don't support this but it should quite easy for you to implement
> a CellRenderer which uses a StyledString and renderer it.
>
> Attached to this mail you'll find a completely untested (I only wrote
> the code renderer) class but you should get the idea. Always remember
> when using the Grid you are in the position of drawing everything
> yourself and you are not restricted to the bounds of the native widget.
>
> Tom
>
> Christian Hauser schrieb:
>
>> Hi all,
>>
>> I've been using a normal JFace TableViewer for an editable table.
>> However, I had to switch to GridTableViewer, because the customer needs
>> wrapping of the text within cells.
>>
>> The problem I'm facing now is that my StyledCellLabelProvider that
>> highlights text is not working with Grid. Am I missing something or is
>> this rather new feature (Eclipse 3.4) not yet supported on Grid?
>>
>> Thanks in advance for any help,
>> Christian
>>
>
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03671 seconds