Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 121793

Summary: [Viewers] ColorAndFontCollectorWithProviders does not utilize public APIs in setFontsAndColors and applyFontsAndColors
Product: [Eclipse Project] Platform Reporter: Heath Borders <heath.borders>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P5 Keywords: helpwanted
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Heath Borders CLA 2005-12-21 18:09:08 EST
StructuredViewer.ColorAndFontCollectorWithProviders does not use its public methods for setting the foreground color, background color, and font inside its setFontsAndColors and applyFontsAndColors methods.  This could lead to unexpected behavior for subclasses.
Comment 1 Rob Grzywinski CLA 2006-08-23 09:01:28 EDT
Having ColorAndFontCollector's foreground, background, font, and usedDecorators package protected prevents custom StructuredViewers from using the ColorAndFontCollector as a custom applyFontsAndColors() cannot be created.  The fact that TableTreeItem, TreeItem, and TableItem are even mentioned in StructuredViewer should give reason enough to refactor.  It seems that StructuredViewer goes to great lenghts to use "Widget" (rather than the more obvious "Item") throughout but then breaks the contract by using specific "Item" subclasses.
Comment 2 Boris Bokowski CLA 2009-11-26 09:51:52 EST
Hitesh is now responsible for watching bugs in the [Viewers] component area.
Comment 3 Heath Borders CLA 2010-04-26 11:58:08 EDT
Any chance for 3.6?
Comment 4 Eclipse Webmaster CLA 2019-09-06 16:07:04 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 5 Eclipse Genie CLA 2022-02-24 15:52:45 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.