Bug 197360

Summary: [misc] org.eclipse.jface.text.TextViewer#setTextColor method is logically wrong
Product: [Eclipse Project] Platform Reporter: Cagatay Calli <ccalli>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: minor    
Priority: P5 CC: daniel_megert
Version: 3.3Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Cagatay Calli CLA 2007-07-20 19:57:23 EDT
Build ID: I20070621-1340

Steps To Reproduce:
1. A given text is styled (background color is set, underlined etc.).
2. setTextColor() method is applied using a color.
3. Old styling is lost.


More information:
I think that losing all styling after using one method to set foreground color is logically wrong and underlying implementation should be changed.
Comment 1 Dani Megert CLA 2007-07-23 05:02:47 EDT
You're right. As you might have noticed this method is not used inside the SDK. Even if the method works correctly it will run into troubles when used in a viewer that uses a presentation reconciler to set the style ranges.

We won't work on this unless we get a patch.
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:04:02 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.