Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ITableColorProvider
ITableColorProvider [message #464926] Thu, 01 December 2005 15:35 Go to next message
Dima is currently offline DimaFriend
Messages: 6
Registered: July 2009
Junior Member
I see an interface: ITableColorProvider but there seems to be no way to
set it on the table - no method setColorProvider.
I am using eclipse 3.1.1.
Please help!
Re: ITableColorProvider [message #464933 is a reply to message #464926] Thu, 01 December 2005 15:43 Go to previous messageGo to next message
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 48
Registered: July 2009
Member
implement it in your labelprovider:

yourlabelprovider implements ITableLabelProvider, ITableColorProvider

and then set it to the viewer:

tableviewer.setLabelProvider(yourlabelprovider)



Dima wrote:
> I see an interface: ITableColorProvider but there seems to be no way to
> set it on the table - no method setColorProvider.
> I am using eclipse 3.1.1.
> Please help!
>
Re: ITableColorProvider [message #464938 is a reply to message #464933] Thu, 01 December 2005 15:57 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You need to use a JFace TableViewer to use ITableColorProvider .

See:
The following article is about Trees but it generally applies to tables as
well.
http://eclipse.org/articles/treeviewer-cg/TreeViewerArticle. htm

The following article starts with a TableViewer and builds on it:
http://eclipse.org/articles/Article-Table-viewer/table_viewe r.html

"Jeremy Dowdall" <dev@myriadfinancial.com> wrote in message
news:dmn5lt$j7l$1@news.eclipse.org...
> implement it in your labelprovider:
>
> yourlabelprovider implements ITableLabelProvider, ITableColorProvider
>
> and then set it to the viewer:
>
> tableviewer.setLabelProvider(yourlabelprovider)
>
>
>
> Dima wrote:
>> I see an interface: ITableColorProvider but there seems to be no way to
>> set it on the table - no method setColorProvider.
>> I am using eclipse 3.1.1.
>> Please help!
>>
Previous Topic:Extra blanc row and column in SWT table
Next Topic:TreeViewer get filtered children
Goto Forum:
  


Current Time: Sat Dec 07 03:34:55 GMT 2024

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

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

Back to the top