Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 57154 - [Font/Colour] [Viewers] Setting colors and fonts of JFace viewer items
Summary: [Font/Colour] [Viewers] Setting colors and fonts of JFace viewer items
Status: RESOLVED DUPLICATE of bug 61869
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-01 19:01 EST by John Ruud CLA
Modified: 2004-07-06 14:27 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Ruud CLA 2004-04-01 19:01:56 EST
Label providers are useful for updating the text and icons of JFace viewer
items, but it is also often desirable to change the colors and fonts.
IColorProvider will change the colors of items in TreeViewer, but in the
table viewers it doesn't seem to be possible to control the color of each
item in a row, only of complete rows. PropertySheetViewer doesn't pay any
attention to the color provider.

It would be very useful to be able to control the text, color, and font of
the individual viewer items (widgets) at the JFace level. One approach may
be to implement a IFontProvider similar to the IColorProvider, and making
the viewers (i.e. TreeViewer, TableViewer, TableTreeViewer, and
PropertySheetViewer) pay attention to it. For the table-based viewers it is
desirable to control individual items as opposed to rows (similar reason to
why ITableLabelProvider was introduced, I guess).
Comment 1 Kim Horne CLA 2004-04-05 17:10:16 EDT
Tod, fire this back to me if you'd like me to look at it.
Comment 2 Tod Creasey CLA 2004-04-06 08:00:02 EDT
This is quite a big amount of work this late in the 3.0 cycle. We should defer 
to 3.1.
Comment 3 Tod Creasey CLA 2004-06-28 11:28:16 EDT
Reopening now that 3.0 has shipped
Comment 4 Tod Creasey CLA 2004-07-06 14:27:41 EDT
Marking as a dup of 61869 so that discussion around this can continue there

*** This bug has been marked as a duplicate of 61869 ***